apache / cordova-plugin-file

Apache Cordova File Plugin
https://cordova.apache.org/
Apache License 2.0
740 stars 757 forks source link

test(ts): Added a TS compilation check #589

Open breautek opened 9 months ago

breautek commented 9 months ago

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

peitschie commented 9 months ago

This all makes sense to me! 🥇