Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

unicornpkg/tstl-types-libunicornpkg

Repository files navigation

Note

This has been moved to the main libunicornpkg repository.

TypeScript to Lua transpiler types for libunicornpkg

Provides hooks into TypeScript's typing system for use with the TypeScript to Lua transpiler.

Usage

Via jsr.io

This package is available as the @unicornpkg/types-libunicornpkg package on jsr.io. See jsr.io's documentation for information on how to install this package.

After it's been installed, you can import it like this:

import { unicorn } from "@unicornpkg/types-libunicornpkg";

As a submodule (legacy)

Add this as a submodule with the path types/unicorn:

git submodule add https://github.com/unicornpkg/tstl-types-libunicornpkg types/unicorn
git submodule update --init --recurse

Then, import the library:

import { unicorn } from "./types/unicorn/unicorn.d.ts";

Development

Contributions are always welcome! This section demonstrates how to contribute to this project.

  1. Install just. Just is a tool that will make your life significantly easier if you've never developed on TypeScript before.
  2. Fork the repository and clone it locally.
  3. Execute just install. This installs developer dependencies.
  4. Occasionally execute just lint. This uses eslint to check for errors.
  5. Commit your changes, push them up to GitHub, and open a PR.