@vimeo/iris
Version:
Vimeo Design System
12 lines (11 loc) • 544 B
TypeScript
import { ForwardRefExoticComponent, RefAttributes, PropsWithoutRef, FC } from 'react';
type IrisMeta = true | {
version: string;
component: string;
dev: unknown;
};
export type IrisComponent<DOMElement, Props> = ForwardRefExoticComponent<PropsWithoutRef<Props> & RefAttributes<DOMElement>> & {
$$iris: IrisMeta;
};
export declare function withIris<DOMElement, Props = unknown, Minors = unknown>(Component: FC<any>, $$iris?: IrisMeta, path?: null | string, debug?: boolean): IrisComponent<DOMElement, Props> & Minors;
export {};