TypeScript definitions for the QuickJS Engine!
Add using a package manager, e.g.: npm
npm i -D quickjs-types
Add types to tsconfig.json
:
{
"compilerOptions": {
"types": ["quickjs-types"]
}
}
Add a submodule to a project, e.g. types/quickjs
:
git submodule add [email protected]:mgred/quickjs-types.git types/quickjs
Extend tsconfig.json
to use types:
{
"compilerOptions": {
"typeRoots": ["types"]
}
}
All tests live in test.ts
. To verify everyting passes,
run:
tsc -p .
Code in this repository is licensed under the GNU General Public License v3
Last update: Thu Nov 9 09:37:05 CET 2023