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

https://github.com/thinknathan/tsd-defos-types

Types for subsoap's defos, extra native OS functions for games written using the Defold game engine
https://github.com/thinknathan/tsd-defos-types

defold defold-game-engine gamedev tstl typescript typescript-definitions typescript-to-lua

Last synced: 6 months ago
JSON representation

Types for subsoap's defos, extra native OS functions for games written using the Defold game engine

Awesome Lists containing this project

README

          

defOS Types

# @types/tsd-defos

Chat with us!

TypeScript types for subsoap's [DefOS](https://github.com/subsoap/defos), extra native OS functions for games written using the Defold game engine.

For use with [TS-Defold](https://github.com/ts-defold) and [TypeScriptToLua](https://github.com/TypeScriptToLua).

## Installation

```bash
yarn add git+https://git@github.com/thinknathan/tsd-defos-types.git#^1.0.0 -D
# or
npm install git+https://git@github.com/thinknathan/tsd-defos-types.git#^1.0.0 --save-dev
```

- Add `tsd-defos` to `types` in `tsconfig.json`

```diff
{
"compilerOptions": {
"types": [
+ "tsd-defos",
],
}
}
```

- Add `node_modules/@types` to `typeRoots` in `tsconfig.json` if it's not already there

```diff
{
"compilerOptions": {
"typeRoots": [
+ "node_modules/@types",
],
}
}
```


TypeScript :heart: Defold