/tsd-defos-types

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

Creative Commons Zero v1.0 UniversalCC0-1.0

defOS Types

@types/tsd-defos

Chat with us!

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.

Installation

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
{
	"compilerOptions": {
		"types": [
+			"tsd-defos",
		],
	}
}
  • Add node_modules/@types to typeRoots in tsconfig.json if it's not already there
{
	"compilerOptions": {
		"typeRoots": [
+			"node_modules/@types",
		],
	}
}

TypeScript ❤️ Defold