mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
typings: fix declaration of primordials
PR-URL: https://github.com/nodejs/node/pull/40222 Fixes: https://github.com/nodejs/node/issues/40144 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
This commit is contained in:
parent
8068f40313
commit
9e64336fbf
6
typings/primordials.d.ts
vendored
6
typings/primordials.d.ts
vendored
@ -24,7 +24,7 @@ type StaticApply<T extends (this: unknown, ...args: unknown[]) => unknown> =
|
||||
* primordials.StringPrototypeStartsWith('thing', 'hello')
|
||||
* ```
|
||||
*/
|
||||
declare namespace primordials {
|
||||
declare namespace Primordials {
|
||||
export function uncurryThis<
|
||||
T extends (...args: unknown[]) => unknown
|
||||
> (fn: T):
|
||||
@ -527,3 +527,7 @@ declare namespace primordials {
|
||||
export const PromisePrototypeCatch: UncurryThis<typeof Promise.prototype.catch>
|
||||
export const PromisePrototypeFinally: UncurryThis<typeof Promise.prototype.finally>
|
||||
}
|
||||
|
||||
declare global {
|
||||
const primordials: typeof Primordials;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user