$ npm install --global reasonably-typed 将TypeScript和Flow定义转换为Reason接口(也许还有TypeScript定义要流) 获取您的Flow或TypeScript定义 // class.js declare module 'classes' { declare type State = { id : number , storeName : string , } declare export class Store { constructor ( initialState : State ) : Sto