Regenerate flow types and add more types.

This commit is contained in:
Logan Smyth
2017-10-07 21:36:23 -04:00
parent 5d4c736413
commit e6beb7cb61
2 changed files with 11 additions and 0 deletions

View File

@@ -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