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 `ModulesBinding` types · nodejs/node@c2fcda4

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • typings/internalBinding
    • modules.d.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎typings/internalBinding/modules.d.ts‎

Copy file name to clipboardExpand all lines: typings/internalBinding/modules.d.ts
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export type PackageConfig = {
99
export type DeserializedPackageConfig = {
1010
data: PackageConfig,
1111
exists: boolean,
12-
path: URL['pathname'],
12+
path: string,
1313
}
1414
export type SerializedPackageConfig = [
1515
PackageConfig['name'],
@@ -22,9 +22,10 @@ export type SerializedPackageConfig = [
2222

2323
export interface ModulesBinding {
2424
readPackageJSON(path: string): SerializedPackageConfig | undefined;
25-
getNearestParentPackageJSON(path: string): SerializedPackageConfig | undefined
26-
getNearestRawParentPackageJSON(origin: URL['pathname']): [ReturnType<JSON['stringify']>, DeserializedPackageConfig['path']] | undefined
2725
getNearestParentPackageJSONType(path: string): PackageConfig['type']
26+
getNearestParentPackageJSON(path: string): SerializedPackageConfig | undefined
2827
getPackageScopeConfig(path: string): SerializedPackageConfig | undefined
29-
getPackageJSONScripts(): string | undefined
28+
enableCompileCache(path?: string): { status: number, message?: string, directory?: string }
29+
getCompileCacheDir(): string | undefined
30+
flushCompileCache(keepDeserializedCache?: boolean): void
3031
}

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.