18 lines
No EOL
223 B
TypeScript
18 lines
No EOL
223 B
TypeScript
// @strict: true
|
|
// @target: esnext
|
|
|
|
// @filename: enum.ts
|
|
export enum Foo {
|
|
A,
|
|
B,
|
|
}
|
|
|
|
// @filename: test.ts
|
|
import {Foo} from './enum';
|
|
|
|
enum Bar {
|
|
A,
|
|
B,
|
|
}
|
|
let foo = Foo.A as const;
|
|
let bar = Bar.A as const; |