Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

TypeScript types for Klayton Kowalski's Persist, a simple interface for saving and loading data in a Defold game engine project
https://github.com/thinknathan/tsd-persist-types

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

Last synced: 2 days ago
JSON representation

TypeScript types for Klayton Kowalski's Persist, a simple interface for saving and loading data in a Defold game engine project

Awesome Lists containing this project

README

        

Persist Types

# @types/tsd-persist-types

Chat with us!

> ❗ This repo will be archived after being contributed to the [Library](https://github.com/ts-defold/library).

TypeScript types for Klayton Kowalski's [Persist](https://github.com/klaytonkowalski/library-defold-persist), a simple interface for saving and loading data in a Defold game engine project.

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

## Installation

```bash
yarn add git+https://[email protected]/thinknathan/tsd-persist-types.git#^0.0.1 -D
# or
npm install git+https://[email protected]/thinknathan/tsd-persist-types.git#^0.0.1 --save-dev
```

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

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

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

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


TypeScript :heart: Defold