An open API service indexing awesome lists of open source software.

https://github.com/mgred/quickjs-types

TypeScript definitions for the QuickJS Engine!
https://github.com/mgred/quickjs-types

quickjs typescript

Last synced: 9 months ago
JSON representation

TypeScript definitions for the QuickJS Engine!

Awesome Lists containing this project

README

          

# QuickJS Types

> TypeScript definitions for the QuickJS Engine!

 

[![Build & Publish Page](https://github.com/mgred/quickjs-types/actions/workflows/build_page.yaml/badge.svg?branch=main)](https://github.com/mgred/quickjs-types/actions/workflows/build_page.yaml)
[![GPLv3 License](https://img.shields.io/badge/License-GPL%20v3-yellow.svg)](https://www.gnu.org/licenses/gpl-3.0.en.html)

## Usage

### Node

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

```bash
npm i -D quickjs-types
```

Add types to `tsconfig.json`:

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

### Git Submodule

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

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

Extend `tsconfig.json` to use types:

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

## Tests

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

```bash
tsc -p .
```

## License

Code in this repository is licensed under the [GNU General Public License v3](https://www.gnu.org/licenses/gpl-3.0.en.html)

## Todos

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