rrdelaney / ReasonablyTyped

:diamond_shape_with_a_dot_inside: Converts Flow and TypeScript definitions to Reason interfaces
https://rrdelaney.github.io/ReasonablyTyped/
MIT License
518 stars 24 forks source link

Typescript definition file extension included in bs.module name #53

Closed zploskey closed 6 years ago

zploskey commented 6 years ago

If we run on a typescript file called "simple.d.ts":

declare function add(x: number, y: number): number

the output is

[@bs.module "simple.d.ts"] external add : (~x:float) => (~y:float) => float = "";

while it should start with [@bs.module "simple"].