Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix omitting manual type for arrow functions
Summary: Changelog: [flow-api-translator] - Fixed omitting manual type for arrow functions Introduced in the previous arrow functions diff (D68160295) the manual type is omitted and void is generated as the return type instead. Given subsequent JS code: ```js export class Foo { foo: (val: string) => number = (val: string) => { return 1; }; } ``` the flowToFlowDef should generate: ```js export declare class Foo { foo: (val: string) => number; } ``` This is the current output (before the diff): ```js export declare class Foo { foo: (val: string) => void; } ``` Reviewed By: pieterv Differential Revision: D69923039 fbshipit-source-id: 5a71102889fcc235ce4cb36b8c50435964c31109
- Loading branch information