A TypeScript definition file parser for the Fable compiler, converting TypeScript type definitions (.d.ts) into F# (.fs) files for use in Fable projects. Current stable version is 0.7.1, with releases on a quarterly to biannual cadence. It handles TypeScript modules, types, and interfaces, generating idiomatic F# bindings with support for generics, callbacks, and unions. Key differentiators: integrates with Fable's type system, supports modern TypeScript features, and includes a command-line interface for batch processing.
npm install ts2fableNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Generates F# bindings for lodash from its TypeScript definitions using the current version of ts2fable.
Use new CLI arguments; check --help for updated options.
Regenerate bindings with ts2fable 0.6.0 or later, and update Fable.Core dependency.
Use `npx ts2fable` instead of global install.
Upgrade to 0.7.1 which fixes issue #334.
Upgrade to 0.7.0 or later which fixes this naming issue (#299).
Update to ts2fable 0.7.1 or later.
Ensure the input .d.ts file exists and is accessible; use --help to check required arguments.
Run `npm install typescript` in the same directory where ts2fable is installed.