13 lines
377 B
TypeScript
13 lines
377 B
TypeScript
|
|
import * as React from 'react';
|
||
|
|
import { StandardProps } from '../';
|
||
|
|
|
||
|
|
export type NamedMuiComponent = React.ComponentType & { muiName: string };
|
||
|
|
|
||
|
|
export interface NamedMuiElement {
|
||
|
|
type: NamedMuiComponent;
|
||
|
|
props: StandardProps<{}, never>;
|
||
|
|
key: string | number | null;
|
||
|
|
}
|
||
|
|
|
||
|
|
export default function isMuiElement(element: any, muiNames: string[]): element is NamedMuiElement;
|