TypeScript/tests/cases/compiler/declarationQuotedMembers.ts
Wesley Wigham f824e7214d Give mapped type properties a synthetic declaration name (#18023)
* Escape symbol names which are not valid identifiers and wrap them in quotes

* Pass forward type, do work in getNameOfSymbol

* Minimal test

* Fix nit
2017-08-24 16:48:11 -07:00

3 lines
110 B
TypeScript

// @declaration: true
export declare const mapped: { [K in 'a-b-c']: number }
export const example = mapped;