* Allow literal initializers of readonly properties in declaration files * Move some conditions a bit
5 lines
172 B
TypeScript
5 lines
172 B
TypeScript
// @declaration: true
|
|
export const FOO = 'FOO';
|
|
export class Bar {
|
|
readonly type = FOO; // Should be widening literal "FOO" - so either `typeof "FOO"` or = "FOO"
|
|
} |