@gleam-tools/ts
v0.0.4
Published
get type safety when importing .gleam from javascript
Readme
ts-gleam 
TypeScript LSP Plugin for importing Gleam files.
Usage
- Create a new Gleam project.
- In
gleam.toml, settarget=javascriptand under[javascript]settypescript_declarations=true. npm add @gleam-tools/ts- Create a
tsconfig.json/jsconfig.jsonand setcompilerOptions.pluginsto[{"name": "@gleam-tools/ts"}] - 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 @gleam-tools/vite
