gleam-lang/gleam

Typescript declarations are not emitted with existing build directory

Closed

#4,520 opened on Apr 29, 2025

 (3 comments) (0 reactions) (0 assignees)Rust (960 forks)batch import
good first issuehelp wanted

Repository metrics

Stars
 (21,417 stars)
PR merge metrics
 (Avg merge 10d 19h) (69 merged PRs in 30d)

Description

Given a gleam application with target = "javascript" will build the application just fine. However when I enable typescript_declarations = true in the gleam.toml config and build the project again, the .d.ts are not emitted until I rm -rf the build directory that was emitted without the declarations turned on.


gleam v1.10.0 runtime: javascript

Contributor guide