Make types compatible with Typescript 4.4 #500
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Platforms affected
None, Typescript type definition only
Motivation and Context
Typescript 4.4 has introduced a lot of changes in
lib.dom.d.ts
file, which raises a lot of compilation errors with the plugin.These changes makes it compatible with it.
Description
Entry
renamed toFileSystemEntry
FileEntry
renamed toFileSystemFileEntry
DirectoryEntry
renamed toFileSystemDirectoryEntry
FileSystem
interface which already exists intolib.dom.d.ts
TS2687
Most of the changes are naming changes to follow Typescript renames.
However, this may require some changes on the application side if :
doc/plugins.md
file to reflect the naming changes, but I'm unsure of the pertinence of it given that we're going to have discrepancies (in namings) between native code's semantics and javascript's semantic. I can rollback these change if you prefer.index.ts44.d.ts
and tell people to reference it instead of the defaultindex.d.ts
README
'sUpgrading notes
section to pinpoint these changes (I didn't added any entry as I don't know which version of the plugin may be concerned by this change)Testing
There wasn't any TS-based tests in place currently, didn't spent time to introduce it as I'd consider it as a whole dedicated topic.
Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)