Skip to content

Commit 65b51d0

Browse files
committed
typings: fix declaration of primordials
PR-URL: #40222 Fixes: #40144 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Evan Lucas <[email protected]> Reviewed-By: Zijian Liu <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
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

Lines changed: 5 additions & 1 deletion
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)