Regenerate flow types and add more types.
This commit is contained in:
parent
5d4c736413
commit
e6beb7cb61
@ -1727,4 +1727,8 @@ declare module "babel-types" {
|
||||
declare function isTSType(node: Object, opts?: Object): boolean;
|
||||
declare function isNumberLiteral(node: Object, opts?: Object): boolean;
|
||||
declare function isRegexLiteral(node: Object, opts?: Object): boolean;
|
||||
declare function clone<T>(n: T): T;
|
||||
declare function cloneDeep<T>(n: T): T;
|
||||
declare function removeProperties<T>(n: T, opts: ?{}): void;
|
||||
declare function removePropertiesDeep<T>(n: T, opts: ?{}): T;
|
||||
}
|
||||
|
||||
@ -129,6 +129,13 @@ for (let i = 0; i < t.TYPES.length; i++) {
|
||||
);
|
||||
}
|
||||
|
||||
lines.push(
|
||||
`declare function clone<T>(n: T): T;`,
|
||||
`declare function cloneDeep<T>(n: T): T;`,
|
||||
`declare function removeProperties<T>(n: T, opts: ?{}): void;`,
|
||||
`declare function removePropertiesDeep<T>(n: T, opts: ?{}): T;`
|
||||
);
|
||||
|
||||
for (const type in t.FLIPPED_ALIAS_KEYS) {
|
||||
const types = t.FLIPPED_ALIAS_KEYS[type];
|
||||
code += `type ${NODE_PREFIX}${type} = ${types
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user