Skip to content

Commit 65b51d0

Browse files
committedOct 13, 2021
typings: fix declaration of primordials
PR-URL: #40222 Fixes: #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>
1 parent 6f6b99c commit 65b51d0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎typings/primordials.d.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type StaticApply<T extends (this: unknown, ...args: unknown[]) => unknown> =
2424
* primordials.StringPrototypeStartsWith('thing', 'hello')
2525
* ```
2626
*/
27-
declare namespace primordials {
27+
declare namespace Primordials {
2828
export function uncurryThis<
2929
T extends (...args: unknown[]) => unknown
3030
> (fn: T):
@@ -527,3 +527,7 @@ declare namespace primordials {
527527
export const PromisePrototypeCatch: UncurryThis<typeof Promise.prototype.catch>
528528
export const PromisePrototypeFinally: UncurryThis<typeof Promise.prototype.finally>
529529
}
530+
531+
declare global {
532+
const primordials: typeof Primordials;
533+
}

0 commit comments

Comments
 (0)
Please sign in to comment.