@types/hoist-non-react-statics
- Version 3.3.6
- Published
- 6.45 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: < Target, Source, CustomStatic extends { [key: string]: true } = {}>( TargetComponent: Target, SourceComponent: Source, customStatic?: CustomStatic) => Target & hoistNonReactStatics.NonReactStatics<Source, CustomStatic>;
Type Aliases
type NonReactStatics
type NonReactStatics< Source, C extends { [key: string]: true; } = {}> = { [key in Exclude< keyof Source, Source extends React.MemoExoticComponent<any> ? keyof MEMO_STATICS | keyof C : Source extends React.ForwardRefExoticComponent<any> ? keyof FORWARD_REF_STATICS | keyof C : keyof REACT_STATICS | keyof KNOWN_STATICS | keyof C >]: Source[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[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](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 3408 ms. - Missing or incorrect documentation? Open an issue for this package.