-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Skip resolving files directly inside node_modules #52809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
sandersn
merged 12 commits into
microsoft:main
from
sandersn:skip-resolving-ts-files-in-node_modules
May 11, 2023
+894
−52
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
5f96e29
Skip resolving files directly inside node_modules
sandersn 299c42b
In node_modules, skip modules that look like absolute URIs
sandersn b279732
lolcolons
sandersn b05b643
Add test + skip more
sandersn f311945
Merge branch 'main' into skip-resolving-ts-files-in-node_modules
sandersn 6bf4384
accept missed baseline
sandersn dd92d45
Merge branch 'main' into skip-resolving-ts-files-in-node_modules
sandersn 1f469d2
only skip resolving in ESM
sandersn 586a892
Revert some unneeded test changes
sandersn d74fcfc
revert unit tests too
sandersn 407c245
remove unused baselines
sandersn 11faca6
Add test cases for nodenext+ESM module resolution
sandersn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
//// [tests/cases/compiler/nodeColonModuleResolution.ts] //// | ||
|
||
//// [ph.d.ts] | ||
declare module 'ph' { | ||
namespace constants { | ||
const NODE_PERFORMANCE_GC_MAJOR: number; | ||
const NODE_PERFORMANCE_GC_MINOR: number; | ||
const NODE_PERFORMANCE_GC_INCREMENTAL: number; | ||
const NODE_PERFORMANCE_GC_WEAKCB: number; | ||
const NODE_PERFORMANCE_GC_FLAGS_NO: number; | ||
const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number; | ||
const NODE_PERFORMANCE_GC_FLAGS_FORCED: number; | ||
const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number; | ||
const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number; | ||
const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number; | ||
const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number; | ||
} | ||
} | ||
declare module 'node:ph' { | ||
export * from 'ph'; | ||
} | ||
//// [main.ts] | ||
import * as ph from 'node:ph' | ||
console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE) | ||
|
||
|
||
//// [main.js] | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ph = require("node:ph"); | ||
console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE); |
60 changes: 60 additions & 0 deletions
60
tests/baselines/reference/nodeColonModuleResolution.symbols
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
=== /a/b/node_modules/@types/node/ph.d.ts === | ||
declare module 'ph' { | ||
>'ph' : Symbol("ph", Decl(ph.d.ts, 0, 0)) | ||
|
||
namespace constants { | ||
>constants : Symbol(constants, Decl(ph.d.ts, 0, 21)) | ||
|
||
const NODE_PERFORMANCE_GC_MAJOR: number; | ||
>NODE_PERFORMANCE_GC_MAJOR : Symbol(NODE_PERFORMANCE_GC_MAJOR, Decl(ph.d.ts, 2, 13)) | ||
|
||
const NODE_PERFORMANCE_GC_MINOR: number; | ||
>NODE_PERFORMANCE_GC_MINOR : Symbol(NODE_PERFORMANCE_GC_MINOR, Decl(ph.d.ts, 3, 13)) | ||
|
||
const NODE_PERFORMANCE_GC_INCREMENTAL: number; | ||
>NODE_PERFORMANCE_GC_INCREMENTAL : Symbol(NODE_PERFORMANCE_GC_INCREMENTAL, Decl(ph.d.ts, 4, 13)) | ||
|
||
const NODE_PERFORMANCE_GC_WEAKCB: number; | ||
>NODE_PERFORMANCE_GC_WEAKCB : Symbol(NODE_PERFORMANCE_GC_WEAKCB, Decl(ph.d.ts, 5, 13)) | ||
|
||
const NODE_PERFORMANCE_GC_FLAGS_NO: number; | ||
>NODE_PERFORMANCE_GC_FLAGS_NO : Symbol(NODE_PERFORMANCE_GC_FLAGS_NO, Decl(ph.d.ts, 6, 13)) | ||
|
||
const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number; | ||
>NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED : Symbol(NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED, Decl(ph.d.ts, 7, 13)) | ||
|
||
const NODE_PERFORMANCE_GC_FLAGS_FORCED: number; | ||
>NODE_PERFORMANCE_GC_FLAGS_FORCED : Symbol(NODE_PERFORMANCE_GC_FLAGS_FORCED, Decl(ph.d.ts, 8, 13)) | ||
|
||
const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number; | ||
>NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING : Symbol(NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING, Decl(ph.d.ts, 9, 13)) | ||
|
||
const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number; | ||
>NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE : Symbol(NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE, Decl(ph.d.ts, 10, 13)) | ||
|
||
const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number; | ||
>NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY : Symbol(NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY, Decl(ph.d.ts, 11, 13)) | ||
|
||
const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number; | ||
>NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE : Symbol(NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE, Decl(ph.d.ts, 12, 13)) | ||
} | ||
} | ||
declare module 'node:ph' { | ||
>'node:ph' : Symbol("node:ph", Decl(ph.d.ts, 14, 1)) | ||
|
||
export * from 'ph'; | ||
} | ||
=== /a/b/main.ts === | ||
import * as ph from 'node:ph' | ||
>ph : Symbol(ph, Decl(main.ts, 0, 6)) | ||
|
||
console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE) | ||
>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) | ||
>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) | ||
>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) | ||
>ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE : Symbol(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE, Decl(ph.d.ts, 10, 13)) | ||
>ph.constants : Symbol(ph.constants, Decl(ph.d.ts, 0, 21)) | ||
>ph : Symbol(ph, Decl(main.ts, 0, 6)) | ||
>constants : Symbol(ph.constants, Decl(ph.d.ts, 0, 21)) | ||
>NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE : Symbol(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE, Decl(ph.d.ts, 10, 13)) | ||
|
73 changes: 73 additions & 0 deletions
73
tests/baselines/reference/nodeColonModuleResolution.trace.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
[ | ||
"======== Resolving module 'node:ph' from '/a/b/main.ts'. ========", | ||
"Explicitly specified module resolution kind: 'Node10'.", | ||
"Skipping module 'node:ph' that looks like an absolute URI, target file types: TypeScript, Declaration.", | ||
"Skipping module 'node:ph' that looks like an absolute URI, target file types: JavaScript.", | ||
"======== Module name 'node:ph' was not resolved. ========", | ||
"======== Resolving module '@typescript/lib-es5' from '__lib_node_modules_lookup_lib.es5.d.ts__.ts'. ========", | ||
"Explicitly specified module resolution kind: 'Node10'.", | ||
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: TypeScript, Declaration.", | ||
"Directory 'node_modules' does not exist, skipping all lookups in it.", | ||
"Scoped package detected, looking in 'typescript__lib-es5'", | ||
"Directory '/node_modules' does not exist, skipping all lookups in it.", | ||
"Scoped package detected, looking in 'typescript__lib-es5'", | ||
"Loading module '@typescript/lib-es5' from 'node_modules' folder, target file types: JavaScript.", | ||
"Directory 'node_modules' does not exist, skipping all lookups in it.", | ||
"Directory '/node_modules' does not exist, skipping all lookups in it.", | ||
"======== Module name '@typescript/lib-es5' was not resolved. ========", | ||
"======== Resolving module '@typescript/lib-decorators' from '__lib_node_modules_lookup_lib.decorators.d.ts__.ts'. ========", | ||
"Explicitly specified module resolution kind: 'Node10'.", | ||
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: TypeScript, Declaration.", | ||
"Directory 'node_modules' does not exist, skipping all lookups in it.", | ||
"Scoped package detected, looking in 'typescript__lib-decorators'", | ||
"Directory '/node_modules' does not exist, skipping all lookups in it.", | ||
"Scoped package detected, looking in 'typescript__lib-decorators'", | ||
"Loading module '@typescript/lib-decorators' from 'node_modules' folder, target file types: JavaScript.", | ||
"Directory 'node_modules' does not exist, skipping all lookups in it.", | ||
"Directory '/node_modules' does not exist, skipping all lookups in it.", | ||
"======== Module name '@typescript/lib-decorators' was not resolved. ========", | ||
"======== Resolving module '@typescript/lib-decorators/legacy' from '__lib_node_modules_lookup_lib.decorators.legacy.d.ts__.ts'. ========", | ||
"Explicitly specified module resolution kind: 'Node10'.", | ||
"Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: TypeScript, Declaration.", | ||
"Directory 'node_modules' does not exist, skipping all lookups in it.", | ||
"Scoped package detected, looking in 'typescript__lib-decorators/legacy'", | ||
"Directory '/node_modules' does not exist, skipping all lookups in it.", | ||
"Scoped package detected, looking in 'typescript__lib-decorators/legacy'", | ||
"Loading module '@typescript/lib-decorators/legacy' from 'node_modules' folder, target file types: JavaScript.", | ||
"Directory 'node_modules' does not exist, skipping all lookups in it.", | ||
"Directory '/node_modules' does not exist, skipping all lookups in it.", | ||
"======== Module name '@typescript/lib-decorators/legacy' was not resolved. ========", | ||
"======== Resolving module '@typescript/lib-dom' from '__lib_node_modules_lookup_lib.dom.d.ts__.ts'. ========", | ||
"Explicitly specified module resolution kind: 'Node10'.", | ||
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: TypeScript, Declaration.", | ||
"Directory 'node_modules' does not exist, skipping all lookups in it.", | ||
"Scoped package detected, looking in 'typescript__lib-dom'", | ||
"Directory '/node_modules' does not exist, skipping all lookups in it.", | ||
"Scoped package detected, looking in 'typescript__lib-dom'", | ||
"Loading module '@typescript/lib-dom' from 'node_modules' folder, target file types: JavaScript.", | ||
"Directory 'node_modules' does not exist, skipping all lookups in it.", | ||
"Directory '/node_modules' does not exist, skipping all lookups in it.", | ||
"======== Module name '@typescript/lib-dom' was not resolved. ========", | ||
"======== Resolving module '@typescript/lib-webworker/importscripts' from '__lib_node_modules_lookup_lib.webworker.importscripts.d.ts__.ts'. ========", | ||
"Explicitly specified module resolution kind: 'Node10'.", | ||
"Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: TypeScript, Declaration.", | ||
"Directory 'node_modules' does not exist, skipping all lookups in it.", | ||
"Scoped package detected, looking in 'typescript__lib-webworker/importscripts'", | ||
"Directory '/node_modules' does not exist, skipping all lookups in it.", | ||
"Scoped package detected, looking in 'typescript__lib-webworker/importscripts'", | ||
"Loading module '@typescript/lib-webworker/importscripts' from 'node_modules' folder, target file types: JavaScript.", | ||
"Directory 'node_modules' does not exist, skipping all lookups in it.", | ||
"Directory '/node_modules' does not exist, skipping all lookups in it.", | ||
"======== Module name '@typescript/lib-webworker/importscripts' was not resolved. ========", | ||
"======== Resolving module '@typescript/lib-scripthost' from '__lib_node_modules_lookup_lib.scripthost.d.ts__.ts'. ========", | ||
"Explicitly specified module resolution kind: 'Node10'.", | ||
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: TypeScript, Declaration.", | ||
"Directory 'node_modules' does not exist, skipping all lookups in it.", | ||
"Scoped package detected, looking in 'typescript__lib-scripthost'", | ||
"Directory '/node_modules' does not exist, skipping all lookups in it.", | ||
"Scoped package detected, looking in 'typescript__lib-scripthost'", | ||
"Loading module '@typescript/lib-scripthost' from 'node_modules' folder, target file types: JavaScript.", | ||
"Directory 'node_modules' does not exist, skipping all lookups in it.", | ||
"Directory '/node_modules' does not exist, skipping all lookups in it.", | ||
"======== Module name '@typescript/lib-scripthost' was not resolved. ========" | ||
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
=== /a/b/node_modules/@types/node/ph.d.ts === | ||
declare module 'ph' { | ||
>'ph' : typeof import("ph") | ||
|
||
namespace constants { | ||
>constants : typeof constants | ||
|
||
const NODE_PERFORMANCE_GC_MAJOR: number; | ||
>NODE_PERFORMANCE_GC_MAJOR : number | ||
|
||
const NODE_PERFORMANCE_GC_MINOR: number; | ||
>NODE_PERFORMANCE_GC_MINOR : number | ||
|
||
const NODE_PERFORMANCE_GC_INCREMENTAL: number; | ||
>NODE_PERFORMANCE_GC_INCREMENTAL : number | ||
|
||
const NODE_PERFORMANCE_GC_WEAKCB: number; | ||
>NODE_PERFORMANCE_GC_WEAKCB : number | ||
|
||
const NODE_PERFORMANCE_GC_FLAGS_NO: number; | ||
>NODE_PERFORMANCE_GC_FLAGS_NO : number | ||
|
||
const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number; | ||
>NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED : number | ||
|
||
const NODE_PERFORMANCE_GC_FLAGS_FORCED: number; | ||
>NODE_PERFORMANCE_GC_FLAGS_FORCED : number | ||
|
||
const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number; | ||
>NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING : number | ||
|
||
const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number; | ||
>NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE : number | ||
|
||
const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number; | ||
>NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY : number | ||
|
||
const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number; | ||
>NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE : number | ||
} | ||
} | ||
declare module 'node:ph' { | ||
>'node:ph' : typeof import("node:ph") | ||
|
||
export * from 'ph'; | ||
} | ||
=== /a/b/main.ts === | ||
import * as ph from 'node:ph' | ||
>ph : typeof ph | ||
|
||
console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE) | ||
>console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE) : void | ||
>console.log : (...data: any[]) => void | ||
>console : Console | ||
>log : (...data: any[]) => void | ||
>ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE : number | ||
>ph.constants : typeof ph.constants | ||
>ph : typeof ph | ||
>constants : typeof ph.constants | ||
>NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE : number | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
//// [tests/cases/compiler/nodeColonModuleResolution2.ts] //// | ||
|
||
//// [index.d.ts] | ||
export namespace constants { | ||
const NODE_PERFORMANCE_GC_MAJOR: number; | ||
const NODE_PERFORMANCE_GC_MINOR: number; | ||
const NODE_PERFORMANCE_GC_INCREMENTAL: number; | ||
const NODE_PERFORMANCE_GC_WEAKCB: number; | ||
const NODE_PERFORMANCE_GC_FLAGS_NO: number; | ||
const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number; | ||
const NODE_PERFORMANCE_GC_FLAGS_FORCED: number; | ||
const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number; | ||
const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number; | ||
const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number; | ||
const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number; | ||
} | ||
//// [main.ts] | ||
import * as ph from 'fake:thing' | ||
console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE) | ||
|
||
|
||
//// [main.js] | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ph = require("fake:thing"); | ||
console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE); |
51 changes: 51 additions & 0 deletions
51
tests/baselines/reference/nodeColonModuleResolution2.symbols
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
=== /a/b/node_modules/fake/thing/index.d.ts === | ||
export namespace constants { | ||
>constants : Symbol(constants, Decl(index.d.ts, 0, 0)) | ||
|
||
const NODE_PERFORMANCE_GC_MAJOR: number; | ||
>NODE_PERFORMANCE_GC_MAJOR : Symbol(NODE_PERFORMANCE_GC_MAJOR, Decl(index.d.ts, 1, 9)) | ||
|
||
const NODE_PERFORMANCE_GC_MINOR: number; | ||
>NODE_PERFORMANCE_GC_MINOR : Symbol(NODE_PERFORMANCE_GC_MINOR, Decl(index.d.ts, 2, 9)) | ||
|
||
const NODE_PERFORMANCE_GC_INCREMENTAL: number; | ||
>NODE_PERFORMANCE_GC_INCREMENTAL : Symbol(NODE_PERFORMANCE_GC_INCREMENTAL, Decl(index.d.ts, 3, 9)) | ||
|
||
const NODE_PERFORMANCE_GC_WEAKCB: number; | ||
>NODE_PERFORMANCE_GC_WEAKCB : Symbol(NODE_PERFORMANCE_GC_WEAKCB, Decl(index.d.ts, 4, 9)) | ||
|
||
const NODE_PERFORMANCE_GC_FLAGS_NO: number; | ||
>NODE_PERFORMANCE_GC_FLAGS_NO : Symbol(NODE_PERFORMANCE_GC_FLAGS_NO, Decl(index.d.ts, 5, 9)) | ||
|
||
const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number; | ||
>NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED : Symbol(NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED, Decl(index.d.ts, 6, 9)) | ||
|
||
const NODE_PERFORMANCE_GC_FLAGS_FORCED: number; | ||
>NODE_PERFORMANCE_GC_FLAGS_FORCED : Symbol(NODE_PERFORMANCE_GC_FLAGS_FORCED, Decl(index.d.ts, 7, 9)) | ||
|
||
const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number; | ||
>NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING : Symbol(NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING, Decl(index.d.ts, 8, 9)) | ||
|
||
const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number; | ||
>NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE : Symbol(NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE, Decl(index.d.ts, 9, 9)) | ||
|
||
const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number; | ||
>NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY : Symbol(NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY, Decl(index.d.ts, 10, 9)) | ||
|
||
const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number; | ||
>NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE : Symbol(NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE, Decl(index.d.ts, 11, 9)) | ||
} | ||
=== /a/b/main.ts === | ||
import * as ph from 'fake:thing' | ||
>ph : Symbol(ph, Decl(main.ts, 0, 6)) | ||
|
||
console.log(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE) | ||
>console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) | ||
>console : Symbol(console, Decl(lib.dom.d.ts, --, --)) | ||
>log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) | ||
>ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE : Symbol(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE, Decl(index.d.ts, 9, 9)) | ||
>ph.constants : Symbol(ph.constants, Decl(index.d.ts, 0, 0)) | ||
>ph : Symbol(ph, Decl(main.ts, 0, 6)) | ||
>constants : Symbol(ph.constants, Decl(index.d.ts, 0, 0)) | ||
>NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE : Symbol(ph.constants.NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE, Decl(index.d.ts, 9, 9)) | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.