diff --git a/flow.d.ts b/flow.d.ts index 4528bcc..c8572d4 100644 --- a/flow.d.ts +++ b/flow.d.ts @@ -14,7 +14,7 @@ type HasComponentProps> = T extends ( ) => React.ReactElement ? OmitDefaultProps : never; -export declare namespace Flow { +export const flow = declare namespace Flow { // Abstract Component utility type // https://flow.org/en/docs/react/types/#toc-react-abstractcomponent type AbstractComponent = React.ComponentType< @@ -44,4 +44,4 @@ export declare namespace Flow { O extends Record, F extends (...args: any[]) => any > = { [P in keyof O]: ReturnType }; -} +};