mirror of
https://github.com/bendtherules/react-to-markdown.git
synced 2026-08-18 22:03:20 +00:00
.ts - Fix tslint errors
This commit is contained in:
+5
-5
@@ -1,20 +1,20 @@
|
||||
import {
|
||||
ComponentClass,
|
||||
ElementType,
|
||||
FunctionComponent,
|
||||
ComponentClass,
|
||||
PropsWithChildren,
|
||||
ReactText
|
||||
} from "react";
|
||||
|
||||
export type ReactElementSubset<TProps = {}> = {
|
||||
export interface IReactElementSubset<TProps = {}> {
|
||||
props: PropsWithChildren<TProps>;
|
||||
type: ElementType<TProps>;
|
||||
};
|
||||
}
|
||||
|
||||
export type ReactElementSubsetWithPrimitive =
|
||||
| ReactElementSubset
|
||||
| IReactElementSubset
|
||||
| ReactText
|
||||
| Array<ReactElementSubsetWithPrimitive>
|
||||
| ReactElementSubsetWithPrimitive[]
|
||||
| null
|
||||
| undefined;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user