diff --git a/workbench/inputs/Libraries/DeprecatedPropTypes/DeprecatedColorPropType.js.flow b/workbench/inputs/Libraries/DeprecatedPropTypes/DeprecatedColorPropType.js.flow new file mode 100644 index 00000000..a2d81f82 --- /dev/null +++ b/workbench/inputs/Libraries/DeprecatedPropTypes/DeprecatedColorPropType.js.flow @@ -0,0 +1,19 @@ +/** + * TODO: Figure out why these are not included in the Flow dump + */ + +declare var colorPropType: ( + // This parameter isn't exported as this function is bound + // isRequired: boolean, + props: any, + propName: string, + componentName: string, + location: string, + propFullName: ?string +) => ?Error + +declare var ColorPropType: typeof colorPropType & { + isRequired: typeof colorPropType, +} + +declare module.exports: typeof ColorPropType diff --git a/workbench/outputs/android/Libraries/DeprecatedPropTypes/DeprecatedColorPropType.d.ts b/workbench/outputs/android/Libraries/DeprecatedPropTypes/DeprecatedColorPropType.d.ts new file mode 100644 index 00000000..21590f07 --- /dev/null +++ b/workbench/outputs/android/Libraries/DeprecatedPropTypes/DeprecatedColorPropType.d.ts @@ -0,0 +1,11 @@ +import { $TypeOf } from "flow2dts-flow-types-polyfill"; + +/** + * TODO: Figure out why these are not included in the Flow dump + */ +declare var colorPropType: (props: any, propName: string, componentName: string, location: string, propFullName: null | undefined | string) => null | undefined | Error; +declare var ColorPropType: $TypeOf & { + isRequired: $TypeOf; +}; +declare const $f2tExportDefault: $TypeOf; +export default $f2tExportDefault; \ No newline at end of file diff --git a/workbench/outputs/ios/Libraries/DeprecatedPropTypes/DeprecatedColorPropType.d.ts b/workbench/outputs/ios/Libraries/DeprecatedPropTypes/DeprecatedColorPropType.d.ts new file mode 100644 index 00000000..21590f07 --- /dev/null +++ b/workbench/outputs/ios/Libraries/DeprecatedPropTypes/DeprecatedColorPropType.d.ts @@ -0,0 +1,11 @@ +import { $TypeOf } from "flow2dts-flow-types-polyfill"; + +/** + * TODO: Figure out why these are not included in the Flow dump + */ +declare var colorPropType: (props: any, propName: string, componentName: string, location: string, propFullName: null | undefined | string) => null | undefined | Error; +declare var ColorPropType: $TypeOf & { + isRequired: $TypeOf; +}; +declare const $f2tExportDefault: $TypeOf; +export default $f2tExportDefault; \ No newline at end of file