# love-typescript-definitions

> Write LÖVE 2D projects with TypeScript

Latest version **11.5.3** (published 2026-03-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install love-typescript-definitions
pnpm add love-typescript-definitions
yarn add love-typescript-definitions
bun add love-typescript-definitions
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 11.5.3 |
| Published | 2026-03-31 |
| First published | 2019-02-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 582.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 132 |
| Maintainers | hazzard993 |
| Keywords | love2d, love, lua, typescript |

## Links

- npm: https://www.npmjs.com/package/love-typescript-definitions
- Repository: https://github.com/hazzard993/love-typescript-definitions
- Homepage: https://github.com/hazzard993/love-typescript-definitions#readme
- Issues: https://github.com/hazzard993/love-typescript-definitions/issues
- npm.io page: https://npm.io/package/love-typescript-definitions

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 11.5.3 (latest) — 2026-03-31
- 11.5.2 — 2025-11-30
- 11.5.1 — 2025-06-07
- 11.5.0 — 2024-09-11
- 11.4.3 — 2024-04-24
- 11.4.2 — 2023-10-25
- 11.4.1 — 2023-09-15
- 11.4.0 — 2023-09-03
- 0.24.3 — 2022-09-27
- 0.24.2 — 2022-08-05
- 0.24.1 — 2022-02-05
- 0.24.0 — 2021-09-05
- 0.23.0 — 2021-07-14
- 0.22.1 — 2020-11-07
- 0.22.0 — 2020-11-07
- … 42 more at https://npm.io/package/love-typescript-definitions/versions

## README

<div align="center">
    <img src="./media/love-typescript-definitions.png?raw=true" alt="TypeScriptToLua + LÖVE 2D" width="512" />
    <h1>
        LÖVE 2D TypeScript Definitions
        <p></p>
        <a href="http://love2d.org/"><img alt="LÖVE 2D" src="https://img.shields.io/badge/L%C3%96VE-11.5-EA316E.svg?style=for-the-badge" /></a>
        <a href="https://www.npmjs.com/package/love-typescript-definitions"><img alt="npm" src="https://img.shields.io/npm/v/love-typescript-definitions.svg?style=for-the-badge" /></a>
    </h1>
</div>

Contains declaration files to build [LÖVE 2D](https://love2d.org/) projects with TypeScript!

Built for use with [TypeScriptToLua](https://github.com/TypeScriptToLua/TypeScriptToLua). Check out [love-typescript-template](https://github.com/hazzard993/love-typescript-template) to get a sample project to build off.

Or run the following in a terminal to try it out:

```sh
# Requires NPX and Love2D to be available via cli
npm init -y
npm install -D typescript-to-lua typescript love-typescript-definitions
echo '{ "compilerOptions": { "target": "ESNext", "lib": ["ESNext"], "moduleResolution": "Node", "types": ["love-typescript-definitions", "@typescript-to-lua/language-extensions"] }, "tstl": { "luaTarget": "JIT" } }' > tsconfig.json
echo "love.draw = () => { love.graphics.print('Hello World') };" > main.ts
npx tstl -p tsconfig.json
love .
```

> TIP: Use _tstl_'s watch mode (`--watch`) if you're after fast and automatic transpilation as files are updated.

Available on NPM.

```sh
npm install love-typescript-definitions
```

## Other Definitions / Tools to Help

- [tstl-anim8](https://github.com/maxiy01/tstl-anim8) declarations for anim8, a small animation library for LÖVE.
- [tstl-flux](https://github.com/maxiy01/tstl-flux) declarations for flux, a fast, lightweight tweening library for Lua.
- [tstl-roomy](https://github.com/maxiy01/tstl-roomy) declarations for roomy, a small screen-management lua module.

---
_Source: https://npm.io/package/love-typescript-definitions · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
