From b860c2acfac6e8550f9ac35fdd3d32c0ce5065d0 Mon Sep 17 00:00:00 2001 From: brightZoe Date: Fri, 19 Jan 2024 13:10:16 +0800 Subject: [PATCH] docs: fix typo in script command of typescript-support.mdx --- website/docs/typescript-support.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/typescript-support.mdx b/website/docs/typescript-support.mdx index 3746982f4cc1..7b099a6e1946 100644 --- a/website/docs/typescript-support.mdx +++ b/website/docs/typescript-support.mdx @@ -134,7 +134,7 @@ The best IDEs (VS Code, WebStorm, IntelliJ...) will provide a nice auto-completi For themes that support TypeScript theme components, you can add the `--typescript` flag to the end of the `swizzle` command to get TypeScript source code. For example, the following command will generate `index.tsx` and `styles.module.css` into `src/theme/Footer`. ```bash npm2yarn -npm run swizzle @docusaurus/theme-classic Footer -- --typescript +npm run swizzle @docusaurus/theme-classic Footer --typescript ``` All official Docusaurus themes support TypeScript theme components, including [`theme-classic`](./api/themes/theme-classic.mdx), [`theme-live-codeblock`](./api/themes/theme-live-codeblock.mdx), and [`theme-search-algolia`](./api/themes/theme-search-algolia.mdx). If you are a Docusaurus theme package author who wants to add TypeScript support, see the [Lifecycle APIs docs](./api/plugin-methods/extend-infrastructure.mdx#getTypeScriptThemePath).