ts2fable
ts2fable copied to clipboard
Parser of Typescript declaration files
I'm wondering if combined types (using `&`) and Omitted fields (using `Omit` ) are supported. I understand that these features are not supported by F#, but I was hoping that...
Tried to convert pdf-lib: https://www.npmjs.com/package/pdf-lib ts2fable node_modules/pdf-lib/cjs/index.d.ts pdfLib.fs -e pdf-lib export declare enum ParseSpeeds { Fastest = Infinity, Fast = 1500, Medium = 500, Slow = 100 } I locally...
In the online version should be a way for the visitor to quick get the latest bindings for the desired js package. The https://github.com/DefinitelyTyped/DefinitelyTyped have the TS bindings we could...
```typescript interface Circle { kind: "circle"; radius: number; } interface Square { kind: "square"; sideLength: number; } type CircleOrSquare = Circle | Square; interface Triangle { kind: "triangle"; sideLength: number;...
Here's a chunk out of a recent vscode typescript definition that describes a series of overloads to the `showInformationMessage` method. The API can take either strings or MessageItem-derived types, but...
A declaration file containing: ```typescript export interface Example { problem: Promise; missed: number; } ``` is compiled to (tested on the website and on `0.8.0-build.638`) ```fsharp type [] Example =...
I'm attempting to generate bindings for the VsCode proposed API, which is shipped as a `.d.ts` file that contains API additions to the base vscode d.ts file. In [this PR](https://github.com/ionide/ionide-vscode-helpers/pull/40)...
Reecent F# compilers warn on missing param names in XML Documentation, so generated xmldocs should be exhaustive here to prevent confusion. Here's a sample from generated vscode APIs: ```fsharp module...
given the following TS: ```ts /** * Register a signature help provider. * * Multiple providers can be registered for a language. In that case providers are sorted * by...
I have @types/p5 (1.3.0) module in my project and ts2fable v0.7.1 I do ``` ts2fable node_modules/@types/p5/index.d.ts src/P5.fs -e p5 ``` and I have ``` .../src/P5.fs(95,17): (95,24) error FSHARP: The namespace...