@gby/destroyable 3.6.2 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DestroyableEventEmitter.d.ts +0 -1
- package/dist/DestroyableEventEmitter.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +381 -15
- package/package.json +1 -6
- package/dist/DestroyableEventTarget-CIMBV0bD.js +0 -377
- package/dist/DestroyableEventTarget-uZtYhcb1.cjs +0 -1
- package/dist/index-web.cjs +0 -1
- package/dist/index-web.js +0 -9
- package/doc/api/destroyable.createdestroyablesubclass.md +0 -82
- package/doc/api/destroyable.destroyable._destroyers.md +0 -13
- package/doc/api/destroyable.destroyable._isdestroyed.md +0 -11
- package/doc/api/destroyable.destroyable.canceldispose.md +0 -49
- package/doc/api/destroyable.destroyable.canceldispose_1.md +0 -49
- package/doc/api/destroyable.destroyable.canceldispose_2.md +0 -49
- package/doc/api/destroyable.destroyable.canceldisposefun.md +0 -52
- package/doc/api/destroyable.destroyable.canceldisposeobj.md +0 -52
- package/doc/api/destroyable.destroyable.destroy.md +0 -17
- package/doc/api/destroyable.destroyable.destroyasync.md +0 -21
- package/doc/api/destroyable.destroyable.destroythis.md +0 -21
- package/doc/api/destroyable.destroyable.dispose.md +0 -51
- package/doc/api/destroyable.destroyable.dispose_1.md +0 -65
- package/doc/api/destroyable.destroyable.dispose_2.md +0 -65
- package/doc/api/destroyable.destroyable.disposefun.md +0 -53
- package/doc/api/destroyable.destroyable.disposeobj.md +0 -68
- package/doc/api/destroyable.destroyable.isdestroyed.md +0 -13
- package/doc/api/destroyable.destroyable.md +0 -287
- package/doc/api/destroyable.destroyablesub.md +0 -15
- package/doc/api/destroyable.destroyablesubclass.md +0 -13
- package/doc/api/destroyable.destroydestroyable.md +0 -52
- package/doc/api/destroyable.destroyobject.md +0 -52
- package/doc/api/destroyable.fundestroyer.md +0 -13
- package/doc/api/destroyable.md +0 -225
- package/doc/api/destroyable.nodedestroyable.md +0 -39
- package/doc/api/destroyable.nodedestroyableclass.md +0 -15
- package/doc/api/destroyable.throwondestroyed.md +0 -17
- package/doc/api/destroyable.webdestroyable.md +0 -39
- package/doc/api/destroyable.webdestroyableclass.md +0 -15
- package/doc/api/index.md +0 -31
|
@@ -1,287 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@gby/destroyable](./destroyable.md) > [Destroyable](./destroyable.destroyable.md)
|
|
4
|
-
|
|
5
|
-
## Destroyable class
|
|
6
|
-
|
|
7
|
-
可销毁的对象
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare class Destroyable
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Properties
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Property
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Modifiers
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Type
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th><th>
|
|
33
|
-
|
|
34
|
-
Description
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
</th></tr></thead>
|
|
38
|
-
<tbody><tr><td>
|
|
39
|
-
|
|
40
|
-
[\_destroyers](./destroyable.destroyable._destroyers.md)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</td><td>
|
|
47
|
-
|
|
48
|
-
[FunDestroyer](./destroyable.fundestroyer.md)<!-- -->\[\]
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
</td><td>
|
|
52
|
-
|
|
53
|
-
销毁者
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
</td></tr>
|
|
57
|
-
<tr><td>
|
|
58
|
-
|
|
59
|
-
[\_isDestroyed](./destroyable.destroyable._isdestroyed.md)
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
</td><td>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
</td><td>
|
|
66
|
-
|
|
67
|
-
boolean
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
</td><td>
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
</td></tr>
|
|
74
|
-
<tr><td>
|
|
75
|
-
|
|
76
|
-
[isDestroyed](./destroyable.destroyable.isdestroyed.md)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
</td><td>
|
|
80
|
-
|
|
81
|
-
`readonly`
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
</td><td>
|
|
85
|
-
|
|
86
|
-
boolean
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
</td><td>
|
|
90
|
-
|
|
91
|
-
是否已经销毁
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
</td></tr>
|
|
95
|
-
</tbody></table>
|
|
96
|
-
|
|
97
|
-
## Methods
|
|
98
|
-
|
|
99
|
-
<table><thead><tr><th>
|
|
100
|
-
|
|
101
|
-
Method
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
</th><th>
|
|
105
|
-
|
|
106
|
-
Modifiers
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
</th><th>
|
|
110
|
-
|
|
111
|
-
Description
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
</th></tr></thead>
|
|
115
|
-
<tbody><tr><td>
|
|
116
|
-
|
|
117
|
-
[cancelDispose(fun)](./destroyable.destroyable.canceldispose.md)
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
</td><td>
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
</td><td>
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
</td></tr>
|
|
127
|
-
<tr><td>
|
|
128
|
-
|
|
129
|
-
[cancelDispose(obj)](./destroyable.destroyable.canceldispose_1.md)
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
</td><td>
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
</td><td>
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
</td></tr>
|
|
139
|
-
<tr><td>
|
|
140
|
-
|
|
141
|
-
[cancelDispose(objOrFun)](./destroyable.destroyable.canceldispose_2.md)
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
</td><td>
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
</td><td>
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
</td></tr>
|
|
151
|
-
<tr><td>
|
|
152
|
-
|
|
153
|
-
[cancelDisposeFun(fun)](./destroyable.destroyable.canceldisposefun.md)
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
</td><td>
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
</td><td>
|
|
160
|
-
|
|
161
|
-
取消销毁者函数
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
</td></tr>
|
|
165
|
-
<tr><td>
|
|
166
|
-
|
|
167
|
-
[cancelDisposeObj(obj)](./destroyable.destroyable.canceldisposeobj.md)
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
</td><td>
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
</td><td>
|
|
174
|
-
|
|
175
|
-
取消销毁者函数
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
</td></tr>
|
|
179
|
-
<tr><td>
|
|
180
|
-
|
|
181
|
-
[destroy()](./destroyable.destroyable.destroy.md)
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
</td><td>
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
</td><td>
|
|
188
|
-
|
|
189
|
-
销毁
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
</td></tr>
|
|
193
|
-
<tr><td>
|
|
194
|
-
|
|
195
|
-
[destroyAsync()](./destroyable.destroyable.destroyasync.md)
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
</td><td>
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
</td><td>
|
|
202
|
-
|
|
203
|
-
异步销毁
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
</td></tr>
|
|
207
|
-
<tr><td>
|
|
208
|
-
|
|
209
|
-
[destroyThis()](./destroyable.destroyable.destroythis.md)
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
</td><td>
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
</td><td>
|
|
216
|
-
|
|
217
|
-
自己的销毁方法
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
</td></tr>
|
|
221
|
-
<tr><td>
|
|
222
|
-
|
|
223
|
-
[dispose(fun)](./destroyable.destroyable.dispose.md)
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
</td><td>
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
</td><td>
|
|
230
|
-
|
|
231
|
-
添加销毁函数或销毁对象
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
</td></tr>
|
|
235
|
-
<tr><td>
|
|
236
|
-
|
|
237
|
-
[dispose(obj, asyncDestroy)](./destroyable.destroyable.dispose_1.md)
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
</td><td>
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
</td><td>
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
</td></tr>
|
|
247
|
-
<tr><td>
|
|
248
|
-
|
|
249
|
-
[dispose(objOrFun, asyncDestroy)](./destroyable.destroyable.dispose_2.md)
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
</td><td>
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
</td><td>
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
</td></tr>
|
|
259
|
-
<tr><td>
|
|
260
|
-
|
|
261
|
-
[disposeFun(fun)](./destroyable.destroyable.disposefun.md)
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
</td><td>
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
</td><td>
|
|
268
|
-
|
|
269
|
-
添加销毁者
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
</td></tr>
|
|
273
|
-
<tr><td>
|
|
274
|
-
|
|
275
|
-
[disposeObj(obj, sync)](./destroyable.destroyable.disposeobj.md)
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
</td><td>
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
</td><td>
|
|
282
|
-
|
|
283
|
-
添加销毁对象
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
</td></tr>
|
|
287
|
-
</tbody></table>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@gby/destroyable](./destroyable.md) > [DestroyableSub](./destroyable.destroyablesub.md)
|
|
4
|
-
|
|
5
|
-
## DestroyableSub type
|
|
6
|
-
|
|
7
|
-
createDestroyableSubClass 创建的类的实例类型
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export type DestroyableSub<ParentClass extends new (...args: any) => Object> = InstanceType<DestroyableSubClass<ParentClass>>;
|
|
13
|
-
```
|
|
14
|
-
**References:** [DestroyableSubClass](./destroyable.destroyablesubclass.md)
|
|
15
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@gby/destroyable](./destroyable.md) > [DestroyableSubClass](./destroyable.destroyablesubclass.md)
|
|
4
|
-
|
|
5
|
-
## DestroyableSubClass type
|
|
6
|
-
|
|
7
|
-
createDestroyableSubClass 创建的类的类型
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export type DestroyableSubClass<ParentClass extends new (...args: any) => Object> = ReturnType<typeof createDestroyableSubClass<ParentClass>>;
|
|
13
|
-
```
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@gby/destroyable](./destroyable.md) > [destroyDestroyable](./destroyable.destroydestroyable.md)
|
|
4
|
-
|
|
5
|
-
## destroyDestroyable() function
|
|
6
|
-
|
|
7
|
-
销毁 Destroyable 对象
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function destroyDestroyable(object: Destroyable): boolean;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
object
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
[Destroyable](./destroyable.destroyable.md)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</td></tr>
|
|
47
|
-
</tbody></table>
|
|
48
|
-
**Returns:**
|
|
49
|
-
|
|
50
|
-
boolean
|
|
51
|
-
|
|
52
|
-
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@gby/destroyable](./destroyable.md) > [destroyObject](./destroyable.destroyobject.md)
|
|
4
|
-
|
|
5
|
-
## destroyObject() function
|
|
6
|
-
|
|
7
|
-
销毁对象
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function destroyObject(object: any): boolean;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
<table><thead><tr><th>
|
|
18
|
-
|
|
19
|
-
Parameter
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
</th><th>
|
|
23
|
-
|
|
24
|
-
Type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</th><th>
|
|
28
|
-
|
|
29
|
-
Description
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</th></tr></thead>
|
|
33
|
-
<tbody><tr><td>
|
|
34
|
-
|
|
35
|
-
object
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
any
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</td></tr>
|
|
47
|
-
</tbody></table>
|
|
48
|
-
**Returns:**
|
|
49
|
-
|
|
50
|
-
boolean
|
|
51
|
-
|
|
52
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@gby/destroyable](./destroyable.md) > [FunDestroyer](./destroyable.fundestroyer.md)
|
|
4
|
-
|
|
5
|
-
## FunDestroyer type
|
|
6
|
-
|
|
7
|
-
函数销毁者
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export type FunDestroyer = () => void;
|
|
13
|
-
```
|
package/doc/api/destroyable.md
DELETED
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@gby/destroyable](./destroyable.md)
|
|
4
|
-
|
|
5
|
-
## destroyable package
|
|
6
|
-
|
|
7
|
-
可销毁的
|
|
8
|
-
|
|
9
|
-
## Remarks
|
|
10
|
-
|
|
11
|
-
@<!-- -->gby/destroyable 提供了用于构建可销毁对象的类的基类,用于使得地管理可销毁对象的生命周期
|
|
12
|
-
|
|
13
|
-
## Classes
|
|
14
|
-
|
|
15
|
-
<table><thead><tr><th>
|
|
16
|
-
|
|
17
|
-
Class
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
</th><th>
|
|
21
|
-
|
|
22
|
-
Description
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</th></tr></thead>
|
|
26
|
-
<tbody><tr><td>
|
|
27
|
-
|
|
28
|
-
[Destroyable](./destroyable.destroyable.md)
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
</td><td>
|
|
32
|
-
|
|
33
|
-
可销毁的对象
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</td></tr>
|
|
37
|
-
</tbody></table>
|
|
38
|
-
|
|
39
|
-
## Functions
|
|
40
|
-
|
|
41
|
-
<table><thead><tr><th>
|
|
42
|
-
|
|
43
|
-
Function
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</th><th>
|
|
47
|
-
|
|
48
|
-
Description
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
</th></tr></thead>
|
|
52
|
-
<tbody><tr><td>
|
|
53
|
-
|
|
54
|
-
[createDestroyableSubClass(ParentClass)](./destroyable.createdestroyablesubclass.md)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
</td><td>
|
|
58
|
-
|
|
59
|
-
创建可销毁的子类
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
</td></tr>
|
|
63
|
-
<tr><td>
|
|
64
|
-
|
|
65
|
-
[destroyDestroyable(object)](./destroyable.destroydestroyable.md)
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
</td><td>
|
|
69
|
-
|
|
70
|
-
销毁 Destroyable 对象
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
</td></tr>
|
|
74
|
-
<tr><td>
|
|
75
|
-
|
|
76
|
-
[destroyObject(object)](./destroyable.destroyobject.md)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
</td><td>
|
|
80
|
-
|
|
81
|
-
销毁对象
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
</td></tr>
|
|
85
|
-
<tr><td>
|
|
86
|
-
|
|
87
|
-
[throwOnDestroyed()](./destroyable.throwondestroyed.md)
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
</td><td>
|
|
91
|
-
|
|
92
|
-
调用已销对象的时抛出错误
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
</td></tr>
|
|
96
|
-
</tbody></table>
|
|
97
|
-
|
|
98
|
-
## Variables
|
|
99
|
-
|
|
100
|
-
<table><thead><tr><th>
|
|
101
|
-
|
|
102
|
-
Variable
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
</th><th>
|
|
106
|
-
|
|
107
|
-
Description
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
</th></tr></thead>
|
|
111
|
-
<tbody><tr><td>
|
|
112
|
-
|
|
113
|
-
[NodeDestroyable](./destroyable.nodedestroyable.md)
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
</td><td>
|
|
117
|
-
|
|
118
|
-
NodeDestroyable 类对象
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
</td></tr>
|
|
122
|
-
<tr><td>
|
|
123
|
-
|
|
124
|
-
[WebDestroyable](./destroyable.webdestroyable.md)
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
</td><td>
|
|
128
|
-
|
|
129
|
-
WebDestroyable 类对象
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
</td></tr>
|
|
133
|
-
</tbody></table>
|
|
134
|
-
|
|
135
|
-
## Type Aliases
|
|
136
|
-
|
|
137
|
-
<table><thead><tr><th>
|
|
138
|
-
|
|
139
|
-
Type Alias
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
</th><th>
|
|
143
|
-
|
|
144
|
-
Description
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
</th></tr></thead>
|
|
148
|
-
<tbody><tr><td>
|
|
149
|
-
|
|
150
|
-
[DestroyableSub](./destroyable.destroyablesub.md)
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
</td><td>
|
|
154
|
-
|
|
155
|
-
createDestroyableSubClass 创建的类的实例类型
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
</td></tr>
|
|
159
|
-
<tr><td>
|
|
160
|
-
|
|
161
|
-
[DestroyableSubClass](./destroyable.destroyablesubclass.md)
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
</td><td>
|
|
165
|
-
|
|
166
|
-
createDestroyableSubClass 创建的类的类型
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
</td></tr>
|
|
170
|
-
<tr><td>
|
|
171
|
-
|
|
172
|
-
[FunDestroyer](./destroyable.fundestroyer.md)
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
</td><td>
|
|
176
|
-
|
|
177
|
-
函数销毁者
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
</td></tr>
|
|
181
|
-
<tr><td>
|
|
182
|
-
|
|
183
|
-
[NodeDestroyable](./destroyable.nodedestroyable.md)
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
</td><td>
|
|
187
|
-
|
|
188
|
-
NodeDestroyable 实例的类型
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
</td></tr>
|
|
192
|
-
<tr><td>
|
|
193
|
-
|
|
194
|
-
[NodeDestroyableClass](./destroyable.nodedestroyableclass.md)
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
</td><td>
|
|
198
|
-
|
|
199
|
-
NodeDestroyable 类的类型
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
</td></tr>
|
|
203
|
-
<tr><td>
|
|
204
|
-
|
|
205
|
-
[WebDestroyable](./destroyable.webdestroyable.md)
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
</td><td>
|
|
209
|
-
|
|
210
|
-
WebDestroyable 实例的类型
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
</td></tr>
|
|
214
|
-
<tr><td>
|
|
215
|
-
|
|
216
|
-
[WebDestroyableClass](./destroyable.webdestroyableclass.md)
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
</td><td>
|
|
220
|
-
|
|
221
|
-
WebDestroyable 类的类型
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
</td></tr>
|
|
225
|
-
</tbody></table>
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@gby/destroyable](./destroyable.md) > [NodeDestroyable](./destroyable.nodedestroyable.md)
|
|
4
|
-
|
|
5
|
-
## NodeDestroyable variable
|
|
6
|
-
|
|
7
|
-
NodeDestroyable 类对象
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
NodeDestroyable: {
|
|
13
|
-
new (...args: any): {
|
|
14
|
-
readonly isDestroyed: boolean;
|
|
15
|
-
_isDestroyed: boolean;
|
|
16
|
-
_destroyers: import("./Destroyable").FunDestroyer[];
|
|
17
|
-
disposeFun<T extends import("./Destroyable").FunDestroyer>(fun: T): T;
|
|
18
|
-
cancelDisposeFun<T extends import("./Destroyable").FunDestroyer>(fun: T): T;
|
|
19
|
-
disposeObj<T extends /*elided*/ any>(obj: T, sync?: boolean): T;
|
|
20
|
-
cancelDisposeObj<T extends /*elided*/ any>(obj: T): T;
|
|
21
|
-
dispose<T extends import("./Destroyable").FunDestroyer>(fun: T): T;
|
|
22
|
-
dispose<T extends /*elided*/ any>(obj: T, asyncDestroy?: boolean): T;
|
|
23
|
-
dispose<T extends import("./Destroyable").FunDestroyer | /*elided*/ any>(objOrFun: T, asyncDestroy?: boolean): T;
|
|
24
|
-
cancelDispose<T extends import("./Destroyable").FunDestroyer>(fun: T): T;
|
|
25
|
-
cancelDispose<T extends /*elided*/ any>(obj: T): T;
|
|
26
|
-
cancelDispose<T extends import("./Destroyable").FunDestroyer | /*elided*/ any>(objOrFun: T): T;
|
|
27
|
-
destroyThis(): void;
|
|
28
|
-
destroy(): true | undefined;
|
|
29
|
-
destroyAsync(): Promise<true | undefined>;
|
|
30
|
-
constructor: Function;
|
|
31
|
-
toString(): string;
|
|
32
|
-
toLocaleString(): string;
|
|
33
|
-
valueOf(): Object;
|
|
34
|
-
hasOwnProperty(v: PropertyKey): boolean;
|
|
35
|
-
isPrototypeOf(v: Object): boolean;
|
|
36
|
-
propertyIsEnumerable(v: PropertyKey): boolean;
|
|
37
|
-
};
|
|
38
|
-
} & typeof EventEmitter
|
|
39
|
-
```
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@gby/destroyable](./destroyable.md) > [NodeDestroyableClass](./destroyable.nodedestroyableclass.md)
|
|
4
|
-
|
|
5
|
-
## NodeDestroyableClass type
|
|
6
|
-
|
|
7
|
-
NodeDestroyable 类的类型
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export type NodeDestroyableClass = typeof NodeDestroyable;
|
|
13
|
-
```
|
|
14
|
-
**References:** [NodeDestroyable](./destroyable.nodedestroyable.md)
|
|
15
|
-
|