Skip to content

Commit 71b424c

Browse files
authored
fix docs (#255)
1 parent 39cee31 commit 71b424c

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

documentation/docs/20-commands/10-sv-create.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: sv create
33
---
44

5-
`sv create` sets up a new SvelteKit project, with options to [setup additional functionality](sv-add#Official-integrations).
5+
`sv create` sets up a new SvelteKit project, with options to [setup additional functionality](sv-add#Official-add-ons).
66

77
## Usage
88

@@ -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)