Skip to content

Commit 0daa1d5

Browse files
committed
fixing code formatting for signatures
1 parent e0aa110 commit 0daa1d5

File tree

1 file changed

+34
-41
lines changed

1 file changed

+34
-41
lines changed

reference/spfx/es6-collections/weakmap.md

Lines changed: 34 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
# WeakMap interface
22

3-
4-
5-
6-
7-
8-
9-
10-
11-
12-
133
## Methods
144

155
| Method | Returns | Description|
@@ -20,95 +10,98 @@
2010
|[`has`](#has) | `boolean` | |
2111
|[`set`](#set) | [`WeakMap<K,V>`](../es6-collections/weakmap.md) | |
2212

23-
24-
25-
2613
### delete
2714

28-
29-
3015
#### Signature
31-
`delete(key: K): boolean`
16+
17+
```ts
18+
delete(key: K): boolean
19+
```
3220
3321
#### Returns
34-
`boolean`
3522
23+
```ts
24+
boolean
25+
```
3626
3727
#### Parameters
3828
39-
4029
| Parameter | Type | Description |
4130
|:-------------|:---------------|:------------|
4231
| `key` | `K` | |
4332
44-
4533
### clear
4634
47-
48-
4935
#### Signature
50-
`clear(): void`
36+
37+
```ts
38+
clear(): void
39+
```
5140
5241
#### Returns
53-
`void`
5442
43+
```ts
44+
void
45+
```
5546
5647
#### Parameters
57-
None
5848
49+
None
5950
6051
### get
6152
62-
63-
6453
#### Signature
65-
`get(key: K): V`
54+
55+
```ts
56+
get(key: K): V
57+
```
6658
6759
#### Returns
68-
`V`
6960
61+
```ts
62+
V
63+
```
7064
7165
#### Parameters
7266
73-
7467
| Parameter | Type | Description |
7568
|:-------------|:---------------|:------------|
7669
| `key` | `K` | |
7770
78-
7971
### has
8072
81-
82-
8373
#### Signature
84-
`has(key: K): boolean`
74+
75+
```ts
76+
has(key: K): boolean
77+
```
8578
8679
#### Returns
87-
`boolean`
8880
81+
```ts
82+
boolean
83+
```
8984
9085
#### Parameters
9186
92-
9387
| Parameter | Type | Description |
9488
|:-------------|:---------------|:------------|
9589
| `key` | `K` | |
9690
97-
9891
### set
9992
100-
101-
10293
#### Signature
103-
`set(key: K,value?: V): WeakMap<K,V>`
94+
95+
```ts
96+
set(key: K,value?: V): WeakMap<K,V>
97+
```
10498
10599
#### Returns
106-
[`WeakMap<K,V>`](../es6-collections/weakmap.md)
107100
101+
[`WeakMap<K,V>`](../es6-collections/weakmap.md)
108102
109103
#### Parameters
110104
111-
112105
| Parameter | Type | Description |
113106
|:-------------|:---------------|:------------|
114107
| `key` | `K` | |

0 commit comments

Comments
 (0)