Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 65b51d0

Browse filesBrowse files
committed
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
Copy full SHA for 65b51d0

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Open diff view settings
Collapse file

‎typings/primordials.d.ts‎

Copy file name to clipboardExpand all lines: typings/primordials.d.ts
+5-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.