diff --git a/packages/__docs__/package.json b/packages/__docs__/package.json index 8be279451f..21c54a03da 100644 --- a/packages/__docs__/package.json +++ b/packages/__docs__/package.json @@ -18,6 +18,7 @@ "lint": "ui-scripts lint", "lint:fix": "ui-scripts lint --fix", "build:scripts:ts": "tsc -b tsconfig.node.build.json", + "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false", "clean": "ui-scripts clean", "createStatsFile": "mkdirp ./__build__ && webpack --profile --json > __build__/bundleStats.json", "analyseStatsFile": "webpack-bundle-analyzer __build__/bundleStats.json" diff --git a/packages/__docs__/src/App/index.tsx b/packages/__docs__/src/App/index.tsx index 1b40308d79..d7d059637e 100644 --- a/packages/__docs__/src/App/index.tsx +++ b/packages/__docs__/src/App/index.tsx @@ -101,7 +101,7 @@ class App extends Component { static defaultProps = { trayWidth: 300 } - _content?: HTMLDivElement + _content?: HTMLDivElement | null _menuTrigger?: HTMLButtonElement _mediaQueryListener?: ReturnType _defaultDocumentTitle?: string diff --git a/packages/__docs__/src/App/props.ts b/packages/__docs__/src/App/props.ts index 41c5213577..be96cacdc6 100644 --- a/packages/__docs__/src/App/props.ts +++ b/packages/__docs__/src/App/props.ts @@ -28,7 +28,7 @@ import type { MainIconsData, MainDocsData, ProcessedFile -} from '../../buildScripts/DataTypes' +} from '../../buildScripts/DataTypes.mts' type AppOwnProps = { trayWidth: number diff --git a/packages/__docs__/src/Document/index.tsx b/packages/__docs__/src/Document/index.tsx index c04be35485..cefbf2ae02 100644 --- a/packages/__docs__/src/Document/index.tsx +++ b/packages/__docs__/src/Document/index.tsx @@ -345,7 +345,7 @@ import { ${importName} } from '${esPath}' > {this.renderDetails(doc)} - {children.map((child, index) => ( + {children.map((child: any, index: any) => ( { } handleSelect = ( - _e: React.MouseEvent, + _e: React.MouseEvent, updated: (string | number | undefined)[] ) => { const [selectedVersion] = updated diff --git a/packages/__docs__/src/Hero/index.tsx b/packages/__docs__/src/Hero/index.tsx index b5fc7ae318..64b01e972d 100644 --- a/packages/__docs__/src/Hero/index.tsx +++ b/packages/__docs__/src/Hero/index.tsx @@ -467,7 +467,7 @@ class Hero extends Component {