You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BugA bug in TypeScriptDomain: check: Order DependenceErrors or types depend on the order of checker operations, e.g. LS / tsc discrepanciesDomain: check: Type InferenceRelated to type inference performed during signature resolution or `infer` type resolutionHas ReproThis issue has compiler-backed repros: https://aka.ms/ts-repros
src/a.ts(3,7): error TS2322: Type 'Promise<Map<number, Promise<string>>>' is not assignable to type 'Promise<Map<number, string>>'.
Type 'Map<number, Promise<string>>' is not assignable to type 'Map<number, string>'.
Type 'Promise<string>' is not assignable to type 'string'.
It works if I explicitly specify props<number, string>(input).
The error only reproduces with "lib": ["es6"].
👋 Hi, I'm the Repro bot. I can help narrow down and track compiler bugs across releases! This comment reflects the current state of this repro running against the nightly TypeScript.
‼️ Exception: Error - error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
Visit https://aka.ms/ts6 for migration information.
Error: error TS5107: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
Visit https://aka.ms/ts6 for migration information.
at Object.createVirtualTypeScriptEnvironment (/home/runner/work/_actions/microsoft/TypeScript-Twoslash-Repro-Action/master/dist/index.js:8128:11)
at twoslasher (/home/runner/work/_actions/microsoft/TypeScript-Twoslash-Repro-Action/master/dist/index.js:7618:17)
at /home/runner/work/_actions/microsoft/TypeScript-Twoslash-Repro-Action/master/dist/index.js:439:44
at runTwoslashRequests (/home/runner/work/_actions/microsoft/TypeScript-Twoslash-Repro-Action/master/dist/index.js:406:56)
at run (/home/runner/work/_actions/microsoft/TypeScript-Twoslash-Repro-Action/master/dist/index.js:20096:75)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Historical Information
Version
Reproduction Outputs
Time
5.0.2, 5.1.3, 5.2.2, 5.3.2, 5.4.2
❌ Failed:
-
Type 'Promise>>' is not assignable to type 'Promise>'.
Type 'Map>' is not assignable to type 'Map'.
Type 'Promise' is not assignable to type 'string'.
BugA bug in TypeScriptDomain: check: Order DependenceErrors or types depend on the order of checker operations, e.g. LS / tsc discrepanciesDomain: check: Type InferenceRelated to type inference performed during signature resolution or `infer` type resolutionHas ReproThis issue has compiler-backed repros: https://aka.ms/ts-repros
Activity
rubiesonthesky commentedon Mar 10, 2024
This is still giving error, here is repro for bot.
Workbench Repro
typescript-bot commentedon Mar 11, 2024
👋 Hi, I'm the Repro bot. I can help narrow down and track compiler bugs across releases! This comment reflects the current state of this repro running against the nightly TypeScript.
Comment by rubiesonthesky
Historical Information
❌ Failed: -
Type 'Promise>>' is not assignable to type 'Promise>'. Type 'Map>' is not assignable to type 'Map'. Type 'Promise' is not assignable to type 'string'.