Skip to content

Commit

Permalink
[docs] Remove @ts-ignore usage (mui#19504)
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon authored and EsoterikStare committed Feb 13, 2020
1 parent f2a36f7 commit 96d47d3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
3 changes: 0 additions & 3 deletions docs/src/pages/components/grid/InteractiveGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ import RadioGroup from '@material-ui/core/RadioGroup';
import Radio from '@material-ui/core/Radio';
import Paper from '@material-ui/core/Paper';
import { makeStyles } from '@material-ui/core/styles';
// We don't have a typescript version of MarkdownElement
// tslint:disable-next-line: ban-ts-ignore
// @ts-ignore
import MarkdownElement from 'docs/src/modules/components/MarkdownElement';

const useStyles = makeStyles(theme => ({
Expand Down
3 changes: 0 additions & 3 deletions docs/src/pages/components/grid/InteractiveGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ import RadioGroup from '@material-ui/core/RadioGroup';
import Radio from '@material-ui/core/Radio';
import Paper from '@material-ui/core/Paper';
import { makeStyles, createStyles, Theme } from '@material-ui/core/styles';
// We don't have a typescript version of MarkdownElement
// tslint:disable-next-line: ban-ts-ignore
// @ts-ignore
import MarkdownElement from 'docs/src/modules/components/MarkdownElement';

const useStyles = makeStyles((theme: Theme) =>
Expand Down
14 changes: 14 additions & 0 deletions docs/types/docs.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
declare module 'docs/src/modules/components/MarkdownElement' {
import React from 'react';
import { StyledComponentProps } from '@material-ui/core/styles';

type ClassKey = 'root';
export interface Props extends StyledComponentProps<ClassKey> {
className?: string;
/**
* text in markdown
*/
text: string;
}
export default function MarkdownElement(props: Props): React.ReactElement;
}

0 comments on commit 96d47d3

Please sign in to comment.