@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,17 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@gby/destroyable](./destroyable.md) > [throwOnDestroyed](./destroyable.throwondestroyed.md)
|
|
4
|
-
|
|
5
|
-
## throwOnDestroyed() function
|
|
6
|
-
|
|
7
|
-
调用已销对象的时抛出错误
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function throwOnDestroyed(): void;
|
|
13
|
-
```
|
|
14
|
-
**Returns:**
|
|
15
|
-
|
|
16
|
-
void
|
|
17
|
-
|
|
@@ -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) > [WebDestroyable](./destroyable.webdestroyable.md)
|
|
4
|
-
|
|
5
|
-
## WebDestroyable variable
|
|
6
|
-
|
|
7
|
-
WebDestroyable 类对象
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
WebDestroyable: {
|
|
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 EventBus
|
|
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) > [WebDestroyableClass](./destroyable.webdestroyableclass.md)
|
|
4
|
-
|
|
5
|
-
## WebDestroyableClass type
|
|
6
|
-
|
|
7
|
-
WebDestroyable 类的类型
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export type WebDestroyableClass = typeof WebDestroyable;
|
|
13
|
-
```
|
|
14
|
-
**References:** [WebDestroyable](./destroyable.webdestroyable.md)
|
|
15
|
-
|
package/doc/api/index.md
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md)
|
|
4
|
-
|
|
5
|
-
## API Reference
|
|
6
|
-
|
|
7
|
-
## Packages
|
|
8
|
-
|
|
9
|
-
<table><thead><tr><th>
|
|
10
|
-
|
|
11
|
-
Package
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
</th><th>
|
|
15
|
-
|
|
16
|
-
Description
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
</th></tr></thead>
|
|
20
|
-
<tbody><tr><td>
|
|
21
|
-
|
|
22
|
-
[@gby/destroyable](./destroyable.md)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</td><td>
|
|
26
|
-
|
|
27
|
-
可销毁的
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</td></tr>
|
|
31
|
-
</tbody></table>
|