File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed
src/pages/components/grid Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,6 @@ import RadioGroup from '@material-ui/core/RadioGroup';
7
7
import Radio from '@material-ui/core/Radio' ;
8
8
import Paper from '@material-ui/core/Paper' ;
9
9
import { makeStyles } from '@material-ui/core/styles' ;
10
- // We don't have a typescript version of MarkdownElement
11
- // tslint:disable-next-line: ban-ts-ignore
12
- // @ts -ignore
13
10
import MarkdownElement from 'docs/src/modules/components/MarkdownElement' ;
14
11
15
12
const useStyles = makeStyles ( theme => ( {
Original file line number Diff line number Diff line change @@ -7,9 +7,6 @@ import RadioGroup from '@material-ui/core/RadioGroup';
7
7
import Radio from '@material-ui/core/Radio' ;
8
8
import Paper from '@material-ui/core/Paper' ;
9
9
import { makeStyles , createStyles , Theme } from '@material-ui/core/styles' ;
10
- // We don't have a typescript version of MarkdownElement
11
- // tslint:disable-next-line: ban-ts-ignore
12
- // @ts -ignore
13
10
import MarkdownElement from 'docs/src/modules/components/MarkdownElement' ;
14
11
15
12
const useStyles = makeStyles ( ( theme : Theme ) =>
Original file line number Diff line number Diff line change
1
+ declare module 'docs/src/modules/components/MarkdownElement' {
2
+ import React from 'react' ;
3
+ import { StyledComponentProps } from '@material-ui/core/styles' ;
4
+
5
+ type ClassKey = 'root' ;
6
+ export interface Props extends StyledComponentProps < ClassKey > {
7
+ className ?: string ;
8
+ /**
9
+ * text in markdown
10
+ */
11
+ text : string ;
12
+ }
13
+ export default function MarkdownElement ( props : Props ) : React . ReactElement ;
14
+ }
You can’t perform that action at this time.
0 commit comments