GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — typings: fix declaration of primordials · nodejs/node@9e64336

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • typings
    • primordials.d.ts
Expand file treeCollapse file tree
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)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.