Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. # `declaration-output-mapped-types`
  2.  
  3. Demonstrates bug with declaration output of mapped types in TypeScript 2.3.4.
  4.  
  5. Usage:
  6.  
  7. * `npm install`
  8. * `npm run build`
  9. * Observe invalid syntax in `dist/index.d.ts`, which needs but lacks quotes
  10. around the keys in the declaration of `scopes`:
  11.  
  12. ```typescript
  13. export declare const scopes: {
  14. noun:verb: "noun:verb";
  15. verb:adjective: "verb:adjective";
  16. noun: "noun";
  17. };
  18. export declare type Scope = keyof typeof scopes;
  19. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement