@types/hoist-non-react-statics
- Version 3.3.1
- Published
- 4.74 kB
- 2 dependencies
- MIT license
Install
npm i @types/hoist-non-react-statics
yarn add @types/hoist-non-react-statics
pnpm add @types/hoist-non-react-statics
Overview
TypeScript definitions for hoist-non-react-statics
Index
Functions
Type Aliases
Functions
function hoistNonReactStatics
hoistNonReactStatics: < T extends React.ComponentType<any>, S extends React.ComponentType<any>, C extends { [key: string]: true } = {}>( TargetComponent: T, SourceComponent: S, customStatic?: C) => T & hoistNonReactStatics.NonReactStatics<S, C>;
Type Aliases
type NonReactStatics
type NonReactStatics< S extends React.ComponentType<any>, C extends { [key: string]: true; } = {}> = { [key in Exclude< keyof S, S extends React.MemoExoticComponent<any> ? keyof MEMO_STATICS | keyof C : S extends React.ForwardRefExoticComponent<any> ? keyof FORWARD_REF_STATICS | keyof C : keyof REACT_STATICS | keyof KNOWN_STATICS | keyof C >]: S[key];};
Package Files (1)
Dependencies (2)
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/hoist-non-react-statics
.
- Markdown[](https://www.jsdocs.io/package/@types/hoist-non-react-statics)
- HTML<a href="https://www.jsdocs.io/package/@types/hoist-non-react-statics"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 1481 ms. - Missing or incorrect documentation? Open an issue for this package.