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.
This pull request introduces several changes to add TypeScript support and configuration for type checking in the project. The most important changes include adding a new job to the GitHub Actions workflow, updating
package.json
to include TypeScript dependencies and scripts, and creating TypeScript configuration and test files.This uses https://gist.github.com/scripthunter7/3274e68ed223102246c098dcf1a772f0 as the basis for the types. It's not complete but covers most of the API.
Needs #1 before merging.
TypeScript Integration:
.github/workflows/build.yml
: Added a new jobtest_types
to run TypeScript checks during the CI process.package.json
: Addedtypes
field to specify the TypeScript declaration file and updated theexports
section to include thetypes
entry. Also added a new scripttest:types
to run TypeScript checks and includedtypescript
as a development dependency. [1] [2] [3]TypeScript Configuration and Tests:
tests/types/tsconfig.json
: Created a TypeScript configuration file for the type tests with strict settings and noEmit option.tests/types/types.test.ts
: Added a comprehensive TypeScript test file to validate type definitions and ensure proper type checking of thecss-tree
library.