Skip to content

Conversation

@nathanstitt
Copy link
Member

typescript in management app was throwing:
Property 'getData' does not exist on type 'DirectoryEntry'.

the way types were setup in zip.js, the entry is a union type and only typed as a DirectoryEntry if it had a .directory property, and as FileEntry when .file was present. Checking the properties allows typescript to infer types as it should

typescript in management app was throwing:
Property 'getData' does not exist on type 'DirectoryEntry'.

the way types were setup in zip.js, the entry is a union type and only
typed as a DirectoryEntry if it had a .directory property, and as
FileEntry when .file was present.  Checking the properties allows
typescript to infer types as it should
@nathanstitt nathanstitt requested a review from a team December 4, 2025 19:08
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

Successfully merging this pull request may close these issues.

4 participants