TypeScript types for britzl's boom, a game framework built on top of Defold.
For use with TS-Defold and TypeScriptToLua.
yarn add git+https://git@github.com/thinknathan/tsd-boom-types.git#^1.0.0 -D
# or
npm install git+https://git@github.com/thinknathan/tsd-boom-types.git#^1.0.0 --save-dev- Add
tsd-boomtotypesintsconfig.json
{
"compilerOptions": {
"types": [
+ "tsd-boom",
],
}
}- Add
node_modules/@typestotypeRootsintsconfig.jsonif it's not already there
{
"compilerOptions": {
"typeRoots": [
+ "node_modules/@types",
],
}
}You can now import boom in your TypeScript like this:
import { boom } from 'boom.boom';TypeScript ❤️ Defold
MIT
