Вт
Size: a a a
Вт
Вт
SG
SG
SG
EO
enum ItemType {
Folder = 'folder'
}
type Item = {
...
type: ItemType
...
}
const item: Item = {
...
type: 'folder'
...
}
ERROR: Type '"folder"' is not assignable to type 'ItemType'Почему?"folder" это string, а у тебя там должен быть literal type "folder"as const добавить - type: 'folder' as constDS
DS
KY
DS
DS
AL
KY
VS
VS
Вт
DS
DS
VS