From cf080c72bad2f13653daaa56f845615dd34daa79 Mon Sep 17 00:00:00 2001 From: Yash Totale <30784592+YashTotale@users.noreply.github.com> Date: Wed, 17 Feb 2021 03:28:36 -0800 Subject: [PATCH] docs(v2): fix npm/yarn command example for swizzling TypeScript theme components (#4230) --- .../versioned_docs/version-2.0.0-alpha.70/typescript-support.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/versioned_docs/version-2.0.0-alpha.70/typescript-support.md b/website/versioned_docs/version-2.0.0-alpha.70/typescript-support.md index 932cd1f7a8..cb947d4aca 100644 --- a/website/versioned_docs/version-2.0.0-alpha.70/typescript-support.md +++ b/website/versioned_docs/version-2.0.0-alpha.70/typescript-support.md @@ -29,7 +29,7 @@ Now you can start writing TypeScript theme components. For themes that supports TypeScript theme components, you can add the `--typescript` flag to the end of swizzling 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 ``` At this moment, the only official Docusaurus theme that supports TypeScript theme components is `@docusaurus/theme-classic`. If you are a Docusaurus theme package author who wants to add TypeScript support, see the [Lifecycle APIs docs](./lifecycle-apis.md#gettypescriptthemepath).