.ts - Fix tslint errors

This commit is contained in:
2019-12-15 16:36:11 +05:30
parent 9af8177501
commit 2463877e0f
2 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -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;
+2 -2
View File
@@ -2,6 +2,7 @@ import { root, text } from "mdast-builder";
import { Children as ReactChildren } from "react";
import * as stringify from "remark-stringify";
import * as unified from "unified";
// tslint:disable-next-line: no-implicit-dependencies
import { Parent as MDASTParent } from "unist";
import {
@@ -56,12 +57,11 @@ function render(
// Render processed array of children
render(renderOutput, parentASTNodeMod);
}
}
// Handle intrinsic types of element like div, h1
{
// Handle intrinsic types of element like div, h1
}
{