Adds Typescript 5.1 as a dev dependency and updates the test script to run tsc to see if our types will at least compile.
There is an empty .ts file as an entry point for tsc, but it could be expanded in the future to actually make use of the API and ensure that types will compile as expected.
Platforms affected
Motivation and Context
Adds a TS check on our type def files.
Description
Adds Typescript 5.1 as a dev dependency and updates the test script to run tsc to see if our types will at least compile.
There is an empty .ts file as an entry point for tsc, but it could be expanded in the future to actually make use of the API and ensure that types will compile as expected.
Testing
Ran npm test
Tests will fail without a PR fix such as https://github.com/apache/cordova-plugin-file/pull/588
Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)