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 c2fcda4

Browse filesBrowse files
committed
typings: fix ModulesBinding types
PR-URL: #55549 Refs: https://github.com/nodejs/node/pull/55412/files#r1817708918 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
1 parent dd9b683 commit c2fcda4
Copy full SHA for c2fcda4

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+5
-4
lines changed
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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.