From b4f9e2c9cdedcf42d7e85f5b62b49a2c573d3a89 Mon Sep 17 00:00:00 2001 From: Dr-Electron Date: Sat, 2 Apr 2022 00:19:26 +0200 Subject: [PATCH] Fix error in ts swizzle description --- website/docs/typescript-support.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/typescript-support.md b/website/docs/typescript-support.md index 25c36c2c593e..17831ee32fed 100644 --- a/website/docs/typescript-support.md +++ b/website/docs/typescript-support.md @@ -125,7 +125,7 @@ npx tsc 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.md), [`theme-live-codeblock`](./api/themes/theme-live-codeblock.md), and [`theme-search-algolia`](./api/themes/theme-search-algolia.md). If you are a Docusaurus theme package author who wants to add TypeScript support, see the [Lifecycle APIs docs](./api/plugin-methods/extend-infrastructure.md#getTypeScriptThemePath).