mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
- Types are exported in the index, as `types.d.ts` doesn’t map to an existing JavaScript file. - `esModuleInterop` was removed from `tsconfig.json` for correctness. - Tests were changed not to use `esModuleInterop` and to use `$ExpectType` annotations.
13 lines
220 B
TypeScript
13 lines
220 B
TypeScript
import * as langmap from 'langmap';
|
|
|
|
// $ExpectType LanguageMappingList
|
|
langmap;
|
|
|
|
// $ExpectType Language
|
|
const value = langmap['en-US'];
|
|
|
|
// $ExpectType string
|
|
value.englishName;
|
|
// $ExpectType string
|
|
value.nativeName;
|