Dog = 'Cat',
Cat = 'Cat',
Bird = 'Cat'
}
export type Animal = {
id: string;
[key in EKind]?: boolean;
}
A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.ts(1170)
A computed property name must be of type 'string', 'number', 'symbol', or 'any'.ts(2464)
key in ERole - ERole не определён
Обсуждают сегодня