* Preserve const enums should keep import refs for exported const enums exported via export default Move some functionality around, small cleanup Remove unneeded const enum check * Only mark const enums as references with preserveConstEnums on in export assignments * Limit change to declarations and preserveConstEnums mode
17 lines
323 B
TypeScript
17 lines
323 B
TypeScript
// @module: amd
|
|
// @preserveConstEnums: true
|
|
// @baseUrl: /proj
|
|
// @filename: /proj/defs/cc.ts
|
|
export const enum CharCode {
|
|
A,
|
|
B
|
|
}
|
|
// @filename: /proj/component/file.ts
|
|
|
|
import { CharCode } from 'defs/cc';
|
|
export class User {
|
|
method(input: number) {
|
|
if (CharCode.A === input) {}
|
|
}
|
|
}
|