Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/src/components/AssertionsLibrary/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useMemo } from 'react';
import React, { type JSX, useState, useMemo } from 'react';
import styles from './styles.module.css';

interface Assertion {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/BenchmarkChart/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from 'react';
import React, { type JSX, useEffect, useState } from 'react';
import styles from './styles.module.css';

interface BenchmarkData {
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/BenchmarkHighlight/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React, { useEffect, useState } from 'react';
import React, { type JSX, useEffect, useState } from 'react';
import Link from '@docusaurus/Link';
import styles from './styles.module.css';

export default function BenchmarkHighlight(): JSX.Element {
export default function BenchmarkHighlight(): JSX.Element | null {
const [speedups, setSpeedups] = useState<any>(null);

useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/components/ChooseYourJourney/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react';
import React, { type JSX } from 'react';
import Link from '@docusaurus/Link';
import styles from './styles.module.css';

Expand Down
1 change: 1 addition & 0 deletions docs/src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import clsx from 'clsx';
import type {JSX} from 'react';
import Heading from '@theme/Heading';
import CodeBlock from '@theme/CodeBlock';
import styles from './styles.module.css';
Expand Down
1 change: 1 addition & 0 deletions docs/src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Link from '@docusaurus/Link';
import Layout from '@theme/Layout';
import {Highlight, themes} from 'prism-react-renderer';
import type {JSX} from 'react';

import styles from './index.module.css';

Expand Down
16 changes: 14 additions & 2 deletions docs/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
{
// This file is not used in compilation. It is here just for a nice editor experience.
"extends": "@docusaurus/tsconfig",
// Keep in sync with @docusaurus/tsconfig, which still uses the removed baseUrl option.
"compilerOptions": {
"baseUrl": "."
"allowJs": true,
"esModuleInterop": true,
"jsx": "preserve",
"target": "ES2022",
"lib": ["ES2022", "DOM"],
"moduleResolution": "bundler",
"module": "esnext",
"noEmit": true,
"paths": {
"@site/*": ["./*"],
"*": ["./*"]
},
"skipLibCheck": true
}
}
Loading