How to make Typescript enum with implements interfaces
i current has this 2 enum
all enum ENNAME keys should only include of enum POSTAG keys
export enum POSTAG
{
BAD = 0x80000000,
D_A = 0x40000000,
D_B = 0x20000000,
D_C = 0x10000000,
}
export enum ENNAME
{
D_A = 'a',
D_B = 'b',
D_C = 'c',
}
is there has any way make something like this??
export interface ENNAME
{
[k: keyof POSTAG]: string,
}