quickjs-types
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

QuickJS Types

TypeScript definitions for the QuickJS Engine!

 

Build & Publish Page GPLv3 License

Usage

Node

Add using a package manager, e.g.: npm

npm i -D quickjs-types

Add types to tsconfig.json:

{
  "compilerOptions": {
    "types": ["quickjs-types"]
  }
}

Git Submodule

Add a submodule to a project, e.g. types/quickjs:

git submodule add git@github.com:mgred/quickjs-types.git types/quickjs

Extend tsconfig.json to use types:

{
  "compilerOptions": {
    "typeRoots": ["types"]
  }
}

Tests

All tests live in test.ts. To verify everyting passes, run:

tsc -p .

License

Code in this repository is licensed under the GNU General Public License v3

Todos

  • [ ] Add more tests
  • [ ] Add more documentation (comments)

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i quickjs-types

      Weekly Downloads

      1

      Version

      1.1.0

      License

      GPL-3.0-or-later

      Unpacked Size

      44.4 kB

      Total Files

      7

      Last publish

      Collaborators

      • mgred