fairDataSociety / fdp-storage

Serverless Web3 filesystem for organizing users' personal data implemented in Typescript.

Home Page:https://www.npmjs.com/package/@fairdatasociety/fdp-storage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)