Skip to content

Commit

Permalink
docs: fix typo in script command of typescript-support.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
brightzoe authored Jan 19, 2024
1 parent bed11f6 commit b860c2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/typescript-support.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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).

0 comments on commit b860c2a

Please sign in to comment.