Skip to content

Commit

Permalink
[workbench] Add missing DeprecatedColorPropType implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
alloy committed Nov 22, 2020
1 parent 493ca6c commit 044a112
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
@@ -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
@@ -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<typeof colorPropType> & {
isRequired: $TypeOf<typeof colorPropType>;
};
declare const $f2tExportDefault: $TypeOf<typeof ColorPropType>;
export default $f2tExportDefault;
@@ -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<typeof colorPropType> & {
isRequired: $TypeOf<typeof colorPropType>;
};
declare const $f2tExportDefault: $TypeOf<typeof ColorPropType>;
export default $f2tExportDefault;

0 comments on commit 044a112

Please sign in to comment.