Note
This has been moved to the main libunicornpkg repository.
Provides hooks into TypeScript's typing system for use with the TypeScript to Lua transpiler.
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";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";Contributions are always welcome! This section demonstrates how to contribute to this project.
- Install just. Just is a tool that will make your life significantly easier if you've never developed on TypeScript before.
- Fork the repository and clone it locally.
- Execute
just install. This installs developer dependencies. - Occasionally execute
just lint. This useseslintto check for errors. - Commit your changes, push them up to GitHub, and open a PR.