vicaryV
Denoβ€’6mo agoβ€’
6 replies
vicary

[Fresh 2] How to reference DOM types in Islands?

I have a simply click-to-copy button in my islands, but
navigator.clipboard
fails
deno check
because it's only referencing Deno's runtime API where clipboard features are not implemented.

Is it possible to configure the project in a way that only
islands/**/*.tsx
includes the DOM API in
compilerOptions.lib
?
Was this page helpful?