TypeScript types for subsoap's DefOS, extra native OS functions for games written using the Defold game engine.
For use with TS-Defold and TypeScriptToLua.
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
totypes
intsconfig.json
{
"compilerOptions": {
"types": [
+ "tsd-defos",
],
}
}
- Add
node_modules/@types
totypeRoots
intsconfig.json
if it's not already there
{
"compilerOptions": {
"typeRoots": [
+ "node_modules/@types",
],
}
}
TypeScript ❤️ Defold