ts-gleam

1.0.1 • Public • Published

ts-gleam npm

TypeScript LSP Plugin for importing Gleam files.

Usage

  1. Create a new Gleam project.
  2. In gleam.toml, set target=javascript and under [javascript] set typescript_declarations=true.
  3. npm add ts-gleam
  4. Create a tsconfig.json/jsconfig.json and set compilerOptions.plugins to [{"name": "ts-gleam"}]
  5. Build your Gleam project when ever you have changes and import away!

Note

This does not build and resolve imports for your. All this is, is for the LSP to type check correctly.
For building with Gleam/JavaScript, check out vite-gleam or to quickly scaffold an app try create-gleam.

Readme

Keywords

none

Package Sidebar

Install

npm i ts-gleam

Weekly Downloads

17

Version

1.0.1

License

MIT

Unpacked Size

20.2 kB

Total Files

7

Last publish

Collaborators

  • enderchief