Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving FileItem and DirectoryItem classes implementation #215

Open
IgorShadurin opened this issue Jan 24, 2023 · 0 comments
Open

Improving FileItem and DirectoryItem classes implementation #215

IgorShadurin opened this issue Jan 24, 2023 · 0 comments

Comments

@IgorShadurin
Copy link
Collaborator

IgorShadurin commented Jan 24, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant