Skip to content

Commit 13c46cf

Browse files
Rich-Harrisgithub-actions[bot]
authored andcommitted
sync cli docs
1 parent 9c0b553 commit 13c46cf

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

apps/svelte.dev/content/docs/cli/20-commands/10-sv-create.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,6 @@ npx sv create [options] [path]
1212

1313
## Options
1414

15-
<!-- TODO this flag should probably just be '--types', and the options should be 'ts' or 'jsdoc' -->
16-
17-
### `--check-types <option>`
18-
19-
Whether and how to add typechecking to the project:
20-
21-
- `typescript` — default to `.ts` files and use `lang="ts"` for `.svelte` components
22-
- `checkjs` — use [JSDoc syntax](https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html) for types
23-
- `none` — no typechecking. Not recommended!
24-
2515
### `--template <name>`
2616

2717
Which project template to use:
@@ -30,6 +20,17 @@ Which project template to use:
3020
- `demo` — showcase app with a word guessing game that works without JavaScript
3121
- `library` — template for a Svelte library, set up with `svelte-package`
3222

23+
### `--types <option>`
24+
25+
Whether and how to add typechecking to the project:
26+
27+
- `ts` — default to `.ts` files and use `lang="ts"` for `.svelte` components
28+
- `jsdoc` — use [JSDoc syntax](https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html) for types
29+
30+
### `--no-types`
31+
32+
Prevent typechecking from being added. Not recommended!
33+
3334
### `--no-integrations`
3435

3536
<!-- TODO should be renamed to `--no-addons` -->

0 commit comments

Comments
 (0)