Improving `FileItem` and `DirectoryItem` classes implementation
IgorShadurin opened this issue · comments
the FileItemObject
and the DirectoryItemObject
have to be up-to-date with the changes in DirectoryItem
and FileItem
. Unfortunately, the TypeScript does not help in this particular case, maybe with some more generic solutioin? such as create an interface IFileItem
that FileItem
implements? that way you can create type like type FileItemObject = IFileItem & TypedObject
Originally posted by @nugaon in #213 (comment)