1.0.1 • Published 2 years ago
ts-gleam v1.0.1
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 ts-gleam- Create a
tsconfig.json/jsconfig.jsonand setcompilerOptions.pluginsto[{"name": "ts-gleam"}] - 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.