You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add ImportDeclaration bindings and InjectImport mutation (#83)
Adds top-level `import { ... } from "..."`, `import type { ... }`, and bare `import "..."` support so callers can prepend imports to the generated TypeScript output.
```go
ts.ApplyMutations(
config.InjectImport("zod", "z"), // import { z } from "zod"
config.InjectTypeImport("./types", "Foo", "Bar=Renamed"), // import type { Bar as Renamed, Foo } from "./types"
config.InjectSideEffectImport("./polyfill"), // import "./polyfill"
)
```
0 commit comments