Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
targos committed Oct 13, 2021
1 parent 6f6b99c commit 65b51d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion typings/primordials.d.ts
Expand Up @@ -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):
Expand Down Expand Up @@ -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;
}

0 comments on commit 65b51d0

Please sign in to comment.