@shopify/react-compose
Advanced tools
Comparing version 2.1.2 to 2.1.3
@@ -6,3 +6,3 @@ import React from 'react'; | ||
export declare type WrappingFunction = (Component: ReactComponent<any>) => ReactComponent<any>; | ||
export default function compose<Props>(...wrappingFunctions: WrappingFunction[]): <ComposedProps, C>(OriginalComponent: (React.ComponentClass<ComposedProps, any> & C) | (React.FunctionComponent<ComposedProps> & C)) => (React.ComponentClass<Props, any> & Pick<(React.ComponentClass<ComposedProps, any> & C) | (React.FunctionComponent<ComposedProps> & C), "defaultProps" | Exclude<keyof C, "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<"displayName" & keyof C, "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<"getDerivedStateFromProps" & keyof C, "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<"childContextTypes" & keyof C, "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<"contextType" & keyof C, "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<"contextTypes" & keyof C, "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<"propTypes" & keyof C, "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<"defaultProps" & keyof C, "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<"getDerivedStateFromError" & keyof C, "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<keyof C & "displayName", "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<keyof C & "contextTypes", "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<keyof C & "propTypes", "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<keyof C & "defaultProps", "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes">>) | (React.FunctionComponent<Props> & Pick<(React.ComponentClass<ComposedProps, any> & C) | (React.FunctionComponent<ComposedProps> & C), "defaultProps" | Exclude<keyof C, "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<"displayName" & keyof C, "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<"getDerivedStateFromProps" & keyof C, "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<"childContextTypes" & keyof C, "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<"contextType" & keyof C, "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<"contextTypes" & keyof C, "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<"propTypes" & keyof C, "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<"defaultProps" & keyof C, "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<"getDerivedStateFromError" & keyof C, "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<keyof C & "displayName", "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<keyof C & "contextTypes", "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<keyof C & "propTypes", "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes"> | Exclude<keyof C & "defaultProps", "displayName" | "getDerivedStateFromProps" | "getDerivedStateFromErrors" | "childContextTypes" | "contextType" | "contextTypes" | "getDefaultProps" | "propTypes">>); | ||
export default function compose<Props>(...wrappingFunctions: WrappingFunction[]): <ComposedProps, C>(OriginalComponent: ReactComponent<ComposedProps> & C) => ReactComponent<Props> & NonReactStatics<ReactComponent<ComposedProps> & C>; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@shopify/react-compose", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"license": "MIT", | ||
@@ -26,3 +26,3 @@ "description": "Cleanly compose multiple component enhancers together with minimal fuss", | ||
"dependencies": { | ||
"@shopify/useful-types": "^3.0.3", | ||
"@shopify/useful-types": "^3.0.4", | ||
"hoist-non-react-statics": "^3.0.1" | ||
@@ -35,4 +35,5 @@ }, | ||
"files": [ | ||
"build/*", | ||
"build/", | ||
"!build/*.tsbuildinfo", | ||
"!build/ts/**/tests/", | ||
"index.js", | ||
@@ -52,3 +53,3 @@ "index.mjs", | ||
}, | ||
"gitHead": "798d03d90b914be7bcd43092910840fb7d58866f" | ||
"gitHead": "80f3bf1a062fa2d432e63fe797716f9c0b226195" | ||
} |
Sorry, the diff of this file is not supported yet
9164
11
31
Updated@shopify/useful-types@^3.0.4