You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see, lib.deno_runtime.d.ts publicly declares namespaces domTypes, blob, consoleTypes, event, customEvent, eventTarget, io, fetchTypes, textEncoding, timers, urlSearchParams, url, workers, and performanceUtil which should all be internal.
You can't declare them as variables in typescript - let url; throws during compilation:
Personal opinion, let's address this as part of #2868. Library files work differently, they need to follow the pattern of other lib files. I understand the problem and we should be able to address it as part of #2868. For now, if the collision is a real problem, let's just rename url to something like __url or _deno_url here.
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: