UNPKG

react-web-native-sketch

Version:

[TODO: We need an overview of how this can be used via npm vs as a local package]

13 lines (12 loc) 672 B
import * as React from "react"; import { StyleRules, WithStyles, StyleSheetClasses } from "../../utils/theme.types"; /** * some method * @param {StyleRules | (() => StyleRules)} styles * @param {string} componentName * @param {React.ComponentType<T & WithStyles>} WrappedComponent * @param {(styles: StyleRules) => StyleSheetClasses} StyleSheetCreate * @returns {React.ComponentType<T>} * @public */ export declare const createStylesGeneric: <T extends {}>(styles: StyleRules | (() => StyleRules), componentName: string, WrappedComponent: React.ComponentType<T & WithStyles>, StyleSheetCreate: (styles: StyleRules) => StyleSheetClasses) => React.ComponentType<T>;