@mtcute/dispatcher 0.22.1 → 0.22.2
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/dispatcher.d.cts +2 -2
- package/dispatcher.d.ts +2 -2
- package/package.json +2 -2
package/dispatcher.d.cts
CHANGED
|
@@ -260,7 +260,7 @@ export declare class Dispatcher<State extends object = never> {
|
|
|
260
260
|
* @param scene Dispatcher representing the scene
|
|
261
261
|
* @param scoped Whether to use scoped FSM storage for the scene (defaults to `true`)
|
|
262
262
|
*/
|
|
263
|
-
addScene(scene: Dispatcher<any>, scoped?: true): void;
|
|
263
|
+
addScene(scene: Dispatcher<any> | Dispatcher<never>, scoped?: true): void;
|
|
264
264
|
/**
|
|
265
265
|
* Remove a child dispatcher.
|
|
266
266
|
*
|
|
@@ -272,7 +272,7 @@ export declare class Dispatcher<State extends object = never> {
|
|
|
272
272
|
*
|
|
273
273
|
* @param child Other dispatcher
|
|
274
274
|
*/
|
|
275
|
-
removeChild(child: Dispatcher<any>): void;
|
|
275
|
+
removeChild(child: Dispatcher<any> | Dispatcher<never>): void;
|
|
276
276
|
private _unparent;
|
|
277
277
|
/**
|
|
278
278
|
* Extend current dispatcher by copying other dispatcher's
|
package/dispatcher.d.ts
CHANGED
|
@@ -260,7 +260,7 @@ export declare class Dispatcher<State extends object = never> {
|
|
|
260
260
|
* @param scene Dispatcher representing the scene
|
|
261
261
|
* @param scoped Whether to use scoped FSM storage for the scene (defaults to `true`)
|
|
262
262
|
*/
|
|
263
|
-
addScene(scene: Dispatcher<any>, scoped?: true): void;
|
|
263
|
+
addScene(scene: Dispatcher<any> | Dispatcher<never>, scoped?: true): void;
|
|
264
264
|
/**
|
|
265
265
|
* Remove a child dispatcher.
|
|
266
266
|
*
|
|
@@ -272,7 +272,7 @@ export declare class Dispatcher<State extends object = never> {
|
|
|
272
272
|
*
|
|
273
273
|
* @param child Other dispatcher
|
|
274
274
|
*/
|
|
275
|
-
removeChild(child: Dispatcher<any>): void;
|
|
275
|
+
removeChild(child: Dispatcher<any> | Dispatcher<never>): void;
|
|
276
276
|
private _unparent;
|
|
277
277
|
/**
|
|
278
278
|
* Extend current dispatcher by copying other dispatcher's
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mtcute/dispatcher",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.22.
|
|
4
|
+
"version": "0.22.2",
|
|
5
5
|
"description": "Updates dispatcher and bot framework for @mtcute/client",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@mtcute/core": "^0.22.
|
|
9
|
+
"@mtcute/core": "^0.22.2",
|
|
10
10
|
"@fuman/utils": "0.0.4"
|
|
11
11
|
},
|
|
12
12
|
"exports": {
|