Skip to content

Commit 4ab4855

Browse files
Merge pull request #103 from csg-tokyo/docs-version-2.0.x
docs: update version 2.0.x
2 parents 3be29e4 + f0507f7 commit 4ab4855

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

website/versioned_docs/version-2.0.x/reference/cli.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ bscript project install [git-url] [options]
5454
```
5555

5656
**Arguments:**
57-
* `<git-url>`: (Optional) The URL of the Git repository to add as a dependency.
57+
* `[git-url]`: (Optional) The URL of the Git repository to add as a dependency.
5858

5959
**Options:**
6060

@@ -81,9 +81,12 @@ bscript project install https://github.com/bluescript/drivers.git --tag v2.0.0
8181
Uninstall the specified package from the current project.
8282

8383
```bash
84-
bscript project uninstall [package-name]
84+
bscript project uninstall <package-name>
8585
```
8686

87+
**Arguments:**
88+
* `<package-name>`: The package name to uninstall.
89+
8790
---
8891

8992
### `bscript project run`
@@ -164,6 +167,9 @@ bscript board remove <board-name> [options]
164167

165168
By default, this command asks for confirmation before deleting files.
166169

170+
**Arguments:**
171+
* `<board-name>`: The target board identifier (e.g., `esp32`).
172+
167173
**Options:**
168174

169175
| Option | Alias | Description |
@@ -189,6 +195,16 @@ By default, this command asks for confirmation before deleting files.
189195

190196
---
191197

198+
### `bscript board update`
199+
200+
Update the version of installed environments.
201+
202+
```bash
203+
bscript board update
204+
```
205+
206+
---
207+
192208
## Other Commands
193209

194210
### `bscript repl`

website/versioned_docs/version-2.0.x/reference/language/built-in-objects.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,15 @@ The initial values are zero, `false`, or `undefined`.
109109
For example, `new Array<integer>(7)` is a valid expression, and it
110110
constructs an array including 7 elements.
111111

112+
The constructor for the `Array<T>` type provides two other overloads: one accepting an array of type `T[]`, and another accepting an array of type `any[]`. This is particularly convenient when initializing an array using a variable of type `any`."
113+
114+
```tsx
115+
let three: any = 3
116+
let arr = [1, 2, three] // arr is any[]
117+
let arr2 = new Array<integer>([1, 2, three]) // arr2 is integer[]
118+
```
119+
120+
112121
### Type Annotations
113122

114123
Array types are represented by `Type[]`. Here, `Type` is a meta variable representing the type name of array elements.

0 commit comments

Comments
 (0)