-
Notifications
You must be signed in to change notification settings - Fork 9.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
core: remove globals from externs.d.ts
#14537
Conversation
externs.d.ts
externs.d.ts
These seem like a prime subject for real imports instead of being in a new |
Most of the usages I had to update were in /**
* @template T
* @typedef {import('../types/util.js').default.SelfMap<T>} SelfMap
*/
I'll try and update as many of these as I can. |
types/util.d.ts
Outdated
@@ -0,0 +1,72 @@ | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wdyt about types/utility-types.d.ts
? Even if redundant it self describes a little better and differentiates more from the four util.*
files we already have
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure but still exposed as LH.Util
?
#14441 (comment)
SelfMap
,Immutable
, etc) are moved toutil.d.ts
and are accessible viaLH.Util
Intl
,Window
) are moved tonode.d.ts
Flags
,RunnerResult
, etc) are staying inexterns.d.ts
This is to separate global definitions only useful to us and non-global definitions we eventually want to expose.