mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
10 lines
199 B
TypeScript
10 lines
199 B
TypeScript
import getCertain = require('get-certain');
|
|
|
|
const map = new Map<string, number>();
|
|
|
|
map.set('foo', 1);
|
|
|
|
// $ExpectType number
|
|
getCertain(map, 'foo');
|
|
getCertain(map, 'bar', 'This map is barless.');
|