UNPKG

377 BTypeScriptView Raw
1import * as React from 'react';
2import { StandardProps } from '../';
3
4export type NamedMuiComponent = React.ComponentType & { muiName: string };
5
6export interface NamedMuiElement {
7 type: NamedMuiComponent;
8 props: StandardProps<{}, never>;
9 key: string | number | null;
10}
11
12export default function isMuiElement(element: any, muiNames: string[]): element is NamedMuiElement;