question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`linkify-element` 4.0.0-beta.3 missing type for `Options`

See original GitHub issue

When using linkify-element 4.0.0-beta.3, it seems the bundled type definitions in the package don’t provide a type for the Options arg of linkifyElementHelper:

node_modules/linkify-element/index.d.ts:24:67 - error TS2304: Cannot find name 'Options'.

24 declare function linkifyElementHelper(element: HTMLElement, opts: Options, doc: Document): HTMLElement;

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
jryanscommented, Feb 4, 2022

Thanks for the quick fix! I can confirm the types are now working well for me with 4.0.0-beta.4.

1reaction
nfrassercommented, Feb 4, 2022

Hi @jryans and @Pike, thank you both looking into this! I released v4.0.0-beta.4 some type improvements that should address this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

linkifyjs | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
element-web/yarn.lock at develop - GitHub
A glossy Matrix collaboration client for the web. Contribute to vector-im/element-web development by creating an account on GitHub.
Read more >
Linkify is a JavaScript plugin for finding links in plain-text and ...
`linkify-element` 4.0.0-beta.3 missing type for `Options`. When using linkify-element 4.0.0-beta.3, it seems the bundled type definitions in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found