8 lines
173 B
TypeScript
8 lines
173 B
TypeScript
|
// @declaration: true
|
||
|
export enum Test {
|
||
|
A, B, C
|
||
|
}
|
||
|
|
||
|
export type TestType = typeof Test;
|
||
|
|
||
|
export const bar = (null as TestType[Extract<keyof TestType, string>][]);
|