Skip to content

Commit

Permalink
Update README.md for some grammar tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon authored Apr 25, 2024
1 parent 0f94d7d commit cf654fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite-gleam/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ export default {

By default, TypeScript (LSP) will complain about importing files with the `.gleam` extension. There are two choices for fixes:

- If the type of the import doesnt matter , add `declare module "*.gleam";` inside any TypeScript file. A caveat is the LSP does not know if a export exists so it will not provide autocompletion when importing a Gleam file and it will type exports as `any`.
- If the type of the import doesn't matter , add `declare module "*.gleam";` inside any TypeScript file. A caveat is the LSP does not know if an export exists so it will not provide autocompletion when importing a Gleam file and it will type exports as `any`.
- Alternatively, if the vite dev server is running you can have full type safety when importing from Gleam. `npm i ts-gleam`. Create a `tsconfig.json`/`jsconfig.json` and set `compilerOptions.plugins` to `[{"name": "ts-gleam"}]` (**RECOMMENDED**)

0 comments on commit cf654fe

Please sign in to comment.