@wix/design-system
Version:
@wix/design-system
5 lines • 606 B
TypeScript
import React from 'react';
import hoistNonReactStatics from 'hoist-non-react-statics';
import { ProviderDefaultPropSupportedComponentName, ProviderDefaultPropSupportedComponents } from './types';
export declare function withDefaultProps<K extends ProviderDefaultPropSupportedComponentName, C extends React.ComponentType<ProviderDefaultPropSupportedComponents[K]>>(Wrapped: C, componentKey: K): React.ForwardRefExoticComponent<React.PropsWithoutRef<React.ComponentProps<C>> & React.RefAttributes<React.ElementRef<C>>> & hoistNonReactStatics.NonReactStatics<C>;
//# sourceMappingURL=withDefaultProps.d.ts.map