diff options
author | Michaël Zasso <targos@protonmail.com> | 2021-09-26 12:22:11 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2021-10-13 10:20:53 +0200 |
commit | 65b51d05facd30973b0fb50e5eb931d46ec008ea (patch) | |
tree | 66555b5efcce3e8a15393cae746840cf35974e20 /typings/primordials.d.ts | |
parent | 6f6b99c302d4748004141aec545850fb4db7b6e2 (diff) | |
download | node-new-65b51d05facd30973b0fb50e5eb931d46ec008ea.tar.gz |
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>
Diffstat (limited to 'typings/primordials.d.ts')
-rw-r--r-- | typings/primordials.d.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/typings/primordials.d.ts b/typings/primordials.d.ts index beed1d7b83..5c291769de 100644 --- a/typings/primordials.d.ts +++ b/typings/primordials.d.ts @@ -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; +} |