DenoDDeno
Powered by
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
navigator.clipboard
fails
deno check
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
islands/**/*.tsx
includes the DOM API in
compilerOptions.lib
compilerOptions.lib
?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

How to load islands in Fresh 2.0 plugins?
Donald BidenDDonald Biden / help
2y ago
window variable in fresh islands
rnbguyRrnbguy / help
4y ago
What are the best possible ways to create islands in Fresh?
BhauminBBhaumin / help
13mo ago