@fluentui/react-northstar
Version:
A themable React component library.
10 lines (9 loc) • 857 B
TypeScript
import * as React from 'react';
import { PropsOf } from 'src/types';
export declare type CollectionShorthandTestOptions<TProps = any> = {
mapsValueToProp: keyof (TProps & React.HTMLProps<HTMLElement>) | false;
};
export declare const DefaultCollectionShorthandTestOptions: CollectionShorthandTestOptions;
export declare type CollectionShorthandPropTestsRunner<TComponent> = <TShorthandComponent extends React.ComponentType>(shorthandProp: keyof PropsOf<TComponent>, ShorthandComponent: TShorthandComponent, options?: CollectionShorthandTestOptions<PropsOf<TShorthandComponent>>) => any;
export declare type CollectionShorthandPropTestsFactory = <TComponent extends React.ComponentType>(Component: TComponent) => CollectionShorthandPropTestsRunner<TComponent>;
export declare const implementsCollectionShorthandProp: CollectionShorthandPropTestsFactory;