From 044a112691797e3435327c19c429332784a8a295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Sun, 22 Nov 2020 01:23:00 +0100 Subject: [PATCH] [workbench] Add missing DeprecatedColorPropType implementation --- .../DeprecatedColorPropType.js.flow | 19 +++++++++++++++++++ .../DeprecatedColorPropType.d.ts | 11 +++++++++++ .../DeprecatedColorPropType.d.ts | 11 +++++++++++ 3 files changed, 41 insertions(+) create mode 100644 workbench/inputs/Libraries/DeprecatedPropTypes/DeprecatedColorPropType.js.flow create mode 100644 workbench/outputs/android/Libraries/DeprecatedPropTypes/DeprecatedColorPropType.d.ts create mode 100644 workbench/outputs/ios/Libraries/DeprecatedPropTypes/DeprecatedColorPropType.d.ts 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