Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # `declaration-output-mapped-types`
- Demonstrates bug with declaration output of mapped types in TypeScript 2.3.4.
- Usage:
- * `npm install`
- * `npm run build`
- * Observe invalid syntax in `dist/index.d.ts`, which needs but lacks quotes
- around the keys in the declaration of `scopes`:
- ```typescript
- export declare const scopes: {
- noun:verb: "noun:verb";
- verb:adjective: "verb:adjective";
- noun: "noun";
- };
- export declare type Scope = keyof typeof scopes;
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement