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
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ jobs:
- name: Install dependencies
run: yarn

- name: Typecheck
run: yarn typecheck

- name: Build
run: yarn build
5 changes: 2 additions & 3 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,7 @@ const config = {
plugins: [
[
require.resolve('@easyops-cn/docusaurus-search-local'),
/** @type {import('@easyops-cn/docusaurus-search-local').PluginOptions} */
({
{
hashed: true,
language: ['en'],
docsRouteBasePath: '/',
Expand All @@ -196,7 +195,7 @@ const config = {
highlightSearchTermsOnTargetPage: true,
searchResultLimits: 10,
searchBarShortcutHint: false,
}),
},
],
[
'@docusaurus/plugin-pwa',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@docusaurus/tsconfig": "^3.7.0",
"@docusaurus/types": "^3.7.0",
"@types/react": "^19.0.0",
"typescript": "~5.8.0"
"typescript": "~7.0.2"
},
"browserslist": {
"production": [
Expand Down
6 changes: 3 additions & 3 deletions src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react';
import React, {type ReactNode} from 'react';
import clsx from 'clsx';
import styles from './styles.module.css';

type FeatureItem = {
title: string;
Svg: React.ComponentType<React.ComponentProps<'svg'>>;
description: JSX.Element;
description: ReactNode;
};

const FeatureList: FeatureItem[] = [
Expand Down Expand Up @@ -55,7 +55,7 @@ function Feature({title, Svg, description}: FeatureItem) {
);
}

export default function HomepageFeatures(): JSX.Element {
export default function HomepageFeatures(): ReactNode {
return (
<section className={styles.features}>
<div className="container">
Expand Down
4 changes: 2 additions & 2 deletions src/pages/404.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import React, {type ReactNode} from 'react';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
import styles from './404.module.css';

export default function NotFound(): JSX.Element {
export default function NotFound(): ReactNode {
return (
<Layout
title="Page not found"
Expand Down
15 changes: 13 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
{
// This file is not used in compilation. It is here just for a nice editor experience.
"extends": "@docusaurus/tsconfig",
// Options inlined from @docusaurus/tsconfig (minus the baseUrl option, which TypeScript 7 removed).
"compilerOptions": {
"baseUrl": "."
"allowJs": true,
"esModuleInterop": true,
"jsx": "preserve",
"target": "ES2022",
"lib": ["ES2022", "DOM"],
"moduleResolution": "bundler",
"module": "esnext",
"noEmit": true,
"paths": {
"@site/*": ["./*"]
},
"skipLibCheck": true
}
}
Loading