Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
21 lines
1.1 KiB
Plaintext
21 lines
1.1 KiB
Plaintext
/**
|
|
* Inlined implementation of hoist-non-react-statics
|
|
* Original library: https://github.com/mridgway/hoist-non-react-statics
|
|
* License: BSD-3-Clause
|
|
* Copyright 2015, Yahoo! Inc.
|
|
*
|
|
* This is an inlined version to avoid ESM compatibility issues with the original package.
|
|
*/
|
|
import type * as React from 'react';
|
|
/**
|
|
* Copies non-react specific statics from a child component to a parent component.
|
|
* Similar to Object.assign, but copies all static properties from source to target,
|
|
* excluding React-specific statics and known JavaScript statics.
|
|
*
|
|
* @param targetComponent - The component to copy statics to
|
|
* @param sourceComponent - The component to copy statics from
|
|
* @param excludelist - An optional object of keys to exclude from hoisting
|
|
* @returns The target component with hoisted statics
|
|
*/
|
|
export declare function hoistNonReactStatics<T extends React.ComponentType<any>, S extends React.ComponentType<any>, C extends Record<string, boolean> = Record<string, never>>(targetComponent: T, sourceComponent: S, excludelist?: C): T;
|
|
//# sourceMappingURL=hoist-non-react-statics.d.ts.map |