Вт
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 const
DS
DS
KY
DS
DS
AL
KY
VS
VS
Вт
DS
DS
VS