-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathindex.js.flow
35 lines (30 loc) · 868 Bytes
/
index.js.flow
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// @flow strict
export type Options = {|
jsdoc?: boolean,
interfaceRecords?: boolean,
moduleExports?: boolean,
quiet?: boolean,
inexact?: boolean,
|};
export type Compiler = {|
compileTest(path: string, target: string): void,
compileDefinitionString(
string: string,
options?: Options,
mapSourceCode?: (source: string | void, fileName: string) => string | void,
): string,
compileDefinitionFile(
path: string,
options?: Options,
mapSourceCode?: (source: string | void, fileName: string) => string | void,
): string,
// Low-level exports
reset(options?: Options): void,
setChecker(checker: $FlowFixMe /* ts.TypeChecker */): void,
compile(sourceFile: $FlowFixMe /* ts.SourceFile */): string,
|};
declare type Flowgen = {|
beautify(str: string): string,
compiler: Compiler,
|};
declare export default Flowgen;