16 lines
316 B
TypeScript
16 lines
316 B
TypeScript
|
// @filename: foo.ts
|
||
|
export const enum ConstFooEnum {
|
||
|
Some,
|
||
|
Values,
|
||
|
Here
|
||
|
};
|
||
|
export function fooFunc(): void { /* removed */ }
|
||
|
// @filename: index.ts
|
||
|
import * as Foo from "./foo";
|
||
|
|
||
|
function check(x: Foo.ConstFooEnum): void {
|
||
|
switch (x) {
|
||
|
case Foo.ConstFooEnum.Some:
|
||
|
break;
|
||
|
}
|
||
|
}
|