-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non-standard namespaces other than Deno declared in lib.deno_runtime.d.ts #2888
Comments
Oops! Declaration files are hard. |
Personal opinion, let's address this as part of #2868. Library files work differently, they need to follow the pattern of other |
Looks like I broke the curl example because of this: Line 2 in efd7e78
Note: This must mean we're not executing, or even compiling, the examples as part of testing. |
As you can see,
lib.deno_runtime.d.ts
publicly declares namespacesdomTypes
,blob
,consoleTypes
,event
,customEvent
,eventTarget
,io
,fetchTypes
,textEncoding
,timers
,urlSearchParams
,url
,workers
, andperformanceUtil
which should all be internal.You can't declare them as variables in typescript -
let url;
throws during compilation:The text was updated successfully, but these errors were encountered: