GeezerVison is showing github.com — typings: fix `ModulesBinding` types · nodejs/node@c2fcda4
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: typings/internalBinding/modules.d.ts +5-4Lines changed: 5 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -9,7 +9,7 @@ export type PackageConfig = { |
9 | 9 | export type DeserializedPackageConfig = { |
10 | 10 | data: PackageConfig, |
11 | 11 | exists: boolean, |
12 | | - path: URL['pathname'], |
| 12 | + path: string, |
13 | 13 | } |
14 | 14 | export type SerializedPackageConfig = [ |
15 | 15 | PackageConfig['name'], |
@@ -22,9 +22,10 @@ export type SerializedPackageConfig = [ |
22 | 22 |
|
23 | 23 | export interface ModulesBinding { |
24 | 24 | readPackageJSON(path: string): SerializedPackageConfig | undefined; |
25 | | - getNearestParentPackageJSON(path: string): SerializedPackageConfig | undefined |
26 | | - getNearestRawParentPackageJSON(origin: URL['pathname']): [ReturnType<JSON['stringify']>, DeserializedPackageConfig['path']] | undefined |
27 | 25 | getNearestParentPackageJSONType(path: string): PackageConfig['type'] |
| 26 | + getNearestParentPackageJSON(path: string): SerializedPackageConfig | undefined |
28 | 27 | 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 |
30 | 31 | } |