Skip to content

Commit 116b668

Browse files
committed
main
1 parent 1189143 commit 116b668

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

docs/document/Powershell/docs/Language/Control Flow.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,20 @@
1313
>```ps1
1414
>[bool]@() # False
1515
>```
16+
17+
## Newline Indicator
18+
19+
## Command Chaining
20+
21+
### Multi-Command in Single Line
22+
23+
Use `;` to separate commands in the same line.
24+
All commands are executed in order.
25+
26+
```ps1
27+
cd ..; gci -rec -file; echo hello
28+
```
29+
30+
### Chaining And & Or <Badge type="info" text="PowerShell 7+" />
31+
32+
In PowerShell 7, `&&` and `||` were introduced to do the same command chaining as bash does.

docs/document/TypeScript/docs/Type Transformation/Conditional Keys.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ And lastly the target type can be arbitrary since we don't need it, all we need
2323

2424
```ts twoslash
2525
const foo = {
26-
bar = 123,
27-
baz = '123',
28-
goo = [1, 2, 3],
29-
foo = { foo = {} }
26+
bar: 123,
27+
baz: '123',
28+
goo: [1, 2, 3],
29+
foo: { foo: {} }
3030
}
3131

3232
type KeyOfSingularTypedProperty<T> = keyof {

0 commit comments

Comments
 (0)