Closed
Description
lib Update Request
Configuration Check
My compilation target is es2021
and my lib is es2021
.
Missing / Incorrect Definition
A generic type in get
method of collections.
Sample Code
const m = new Map<string, string | number>();
m.set('key', 'value');
conat v = m.get('key') // Map<string, string | number>.get(key: string): string | number | undefined
Request
const m = new Map<string, string | number>();
m.set('key', 'value');
conat v = m.get<string>('key') // Map<string, string | number>.get<string>(key: string): string | undefined
Documentation Link
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/get
Metadata
Metadata
Assignees
Labels
No labels