flowgen
Version:
Generate flowtype definition files from TypeScript
25 lines (22 loc) • 503 B
JavaScript
exports.__esModule = true;
exports.print = void 0;
const types = {
VoidKeyword: "void",
StringKeyword: "string",
BigIntKeyword: "bigint",
AnyKeyword: "any",
NumberKeyword: "number",
BooleanKeyword: "boolean",
NullKeyword: "null",
UndefinedKeyword: "void",
ObjectKeyword: "{[key: string]: any}",
FalseKeyword: "false",
TrueKeyword: "true",
NeverKeyword: "empty",
UnknownKeyword: "mixed"
};
const print = kind => {
return types[kind];
};
exports.print = print;
;