1.0.1 • Published 6 months ago

ts-gleam v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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.

1.0.1

6 months ago

1.0.0

6 months ago