@fluid-experimental/data-objects 2.0.0-dev-rc.3.0.0.254513 → 2.0.0-dev-rc.3.0.0.254866
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/alpha.d.ts +9 -0
- package/dist/beta.d.ts +9 -0
- package/dist/public.d.ts +9 -0
- package/lib/alpha.d.ts +9 -0
- package/lib/beta.d.ts +9 -0
- package/lib/public.d.ts +9 -0
- package/package.json +13 -25
- package/api-extractor-cjs.json +0 -8
- package/dist/data-objects-alpha.d.ts +0 -16
- package/dist/data-objects-beta.d.ts +0 -22
- package/dist/data-objects-public.d.ts +0 -22
- package/dist/data-objects-untrimmed.d.ts +0 -75
- package/dist/tsdoc-metadata.json +0 -11
- package/lib/data-objects-alpha.d.ts +0 -16
- package/lib/data-objects-beta.d.ts +0 -22
- package/lib/data-objects-public.d.ts +0 -22
- package/lib/data-objects-untrimmed.d.ts +0 -75
package/dist/alpha.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluidframework/build-tools.
|
|
9
|
+
*/
|
package/dist/beta.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluidframework/build-tools.
|
|
9
|
+
*/
|
package/dist/public.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluidframework/build-tools.
|
|
9
|
+
*/
|
package/lib/alpha.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluidframework/build-tools.
|
|
9
|
+
*/
|
package/lib/beta.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluidframework/build-tools.
|
|
9
|
+
*/
|
package/lib/public.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/*
|
|
7
|
+
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
+
* Generated by "flub generate entrypoints" in @fluidframework/build-tools.
|
|
9
|
+
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-experimental/data-objects",
|
|
3
|
-
"version": "2.0.0-dev-rc.3.0.0.
|
|
3
|
+
"version": "2.0.0-dev-rc.3.0.0.254866",
|
|
4
4
|
"description": "A collection of ready to use Fluid Data Objects",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
},
|
|
26
26
|
"./public": {
|
|
27
27
|
"import": {
|
|
28
|
-
"types": "./lib/
|
|
28
|
+
"types": "./lib/public.d.ts",
|
|
29
29
|
"default": "./lib/index.js"
|
|
30
30
|
},
|
|
31
31
|
"require": {
|
|
32
|
-
"types": "./dist/
|
|
32
|
+
"types": "./dist/public.d.ts",
|
|
33
33
|
"default": "./dist/index.js"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"main": "dist/index.js",
|
|
48
48
|
"types": "dist/index.d.ts",
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@fluid-internal/client-utils": "2.0.0-dev-rc.3.0.0.
|
|
51
|
-
"@fluidframework/aqueduct": "2.0.0-dev-rc.3.0.0.
|
|
52
|
-
"@fluidframework/core-interfaces": "2.0.0-dev-rc.3.0.0.
|
|
53
|
-
"@fluidframework/core-utils": "2.0.0-dev-rc.3.0.0.
|
|
54
|
-
"@fluidframework/datastore-definitions": "2.0.0-dev-rc.3.0.0.
|
|
55
|
-
"@fluidframework/map": "2.0.0-dev-rc.3.0.0.
|
|
56
|
-
"@fluidframework/runtime-definitions": "2.0.0-dev-rc.3.0.0.
|
|
50
|
+
"@fluid-internal/client-utils": "2.0.0-dev-rc.3.0.0.254866",
|
|
51
|
+
"@fluidframework/aqueduct": "2.0.0-dev-rc.3.0.0.254866",
|
|
52
|
+
"@fluidframework/core-interfaces": "2.0.0-dev-rc.3.0.0.254866",
|
|
53
|
+
"@fluidframework/core-utils": "2.0.0-dev-rc.3.0.0.254866",
|
|
54
|
+
"@fluidframework/datastore-definitions": "2.0.0-dev-rc.3.0.0.254866",
|
|
55
|
+
"@fluidframework/map": "2.0.0-dev-rc.3.0.0.254866",
|
|
56
|
+
"@fluidframework/runtime-definitions": "2.0.0-dev-rc.3.0.0.254866"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@arethetypeswrong/cli": "^0.15.2",
|
|
@@ -71,30 +71,18 @@
|
|
|
71
71
|
"rimraf": "^4.4.0",
|
|
72
72
|
"typescript": "~5.1.6"
|
|
73
73
|
},
|
|
74
|
-
"fluidBuild": {
|
|
75
|
-
"tasks": {
|
|
76
|
-
"build:docs": {
|
|
77
|
-
"dependsOn": [
|
|
78
|
-
"...",
|
|
79
|
-
"api-extractor:commonjs",
|
|
80
|
-
"api-extractor:esnext"
|
|
81
|
-
],
|
|
82
|
-
"script": false
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
74
|
"typeValidation": {
|
|
87
75
|
"disabled": true,
|
|
88
76
|
"broken": {}
|
|
89
77
|
},
|
|
90
78
|
"scripts": {
|
|
91
79
|
"api": "fluid-build . --task api",
|
|
92
|
-
"api-extractor:commonjs": "
|
|
93
|
-
"api-extractor:esnext": "
|
|
80
|
+
"api-extractor:commonjs": "flub generate entrypoints --outDir ./dist",
|
|
81
|
+
"api-extractor:esnext": "flub generate entrypoints --outDir ./lib",
|
|
94
82
|
"build": "fluid-build . --task build",
|
|
95
83
|
"build:commonjs": "fluid-build . --task commonjs",
|
|
96
84
|
"build:compile": "fluid-build . --task compile",
|
|
97
|
-
"build:docs": "
|
|
85
|
+
"build:docs": "api-extractor run --local",
|
|
98
86
|
"build:esnext": "tsc --project ./tsconfig.json",
|
|
99
87
|
"check:are-the-types-wrong": "attw --pack . --entrypoints .",
|
|
100
88
|
"check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
|
package/api-extractor-cjs.json
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
|
3
|
-
"extends": "../../../common/build/build-common/api-extractor-base.cjs.primary.json",
|
|
4
|
-
// CJS is actually secondary; so, no report.
|
|
5
|
-
"apiReport": {
|
|
6
|
-
"enabled": false
|
|
7
|
-
}
|
|
8
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@fluidframework/aqueduct/internal';
|
|
2
|
-
import { DataObjectFactory } from '@fluidframework/aqueduct/internal';
|
|
3
|
-
import { EventEmitter } from '@fluid-internal/client-utils';
|
|
4
|
-
import { IErrorEvent } from '@fluidframework/core-interfaces';
|
|
5
|
-
import { IInboundSignalMessage } from '@fluidframework/runtime-definitions';
|
|
6
|
-
import { Jsonable } from '@fluidframework/datastore-definitions/internal';
|
|
7
|
-
|
|
8
|
-
/* Excluded from this release type: IRuntimeSignaler */
|
|
9
|
-
|
|
10
|
-
/* Excluded from this release type: ISignaler */
|
|
11
|
-
|
|
12
|
-
/* Excluded from this release type: Signaler */
|
|
13
|
-
|
|
14
|
-
/* Excluded from this release type: SignalListener */
|
|
15
|
-
|
|
16
|
-
export { }
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@fluidframework/aqueduct/internal';
|
|
2
|
-
import { DataObjectFactory } from '@fluidframework/aqueduct/internal';
|
|
3
|
-
import { EventEmitter } from '@fluid-internal/client-utils';
|
|
4
|
-
import { IErrorEvent } from '@fluidframework/core-interfaces';
|
|
5
|
-
import { IInboundSignalMessage } from '@fluidframework/runtime-definitions';
|
|
6
|
-
import { Jsonable } from '@fluidframework/datastore-definitions/internal';
|
|
7
|
-
|
|
8
|
-
/* Excluded from this release type: DataObject */
|
|
9
|
-
|
|
10
|
-
/* Excluded from this release type: DataObjectFactory */
|
|
11
|
-
|
|
12
|
-
/* Excluded from this release type: IRuntimeSignaler */
|
|
13
|
-
|
|
14
|
-
/* Excluded from this release type: ISignaler */
|
|
15
|
-
|
|
16
|
-
/* Excluded from this release type: Jsonable */
|
|
17
|
-
|
|
18
|
-
/* Excluded from this release type: Signaler */
|
|
19
|
-
|
|
20
|
-
/* Excluded from this release type: SignalListener */
|
|
21
|
-
|
|
22
|
-
export { }
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@fluidframework/aqueduct/internal';
|
|
2
|
-
import { DataObjectFactory } from '@fluidframework/aqueduct/internal';
|
|
3
|
-
import { EventEmitter } from '@fluid-internal/client-utils';
|
|
4
|
-
import { IErrorEvent } from '@fluidframework/core-interfaces';
|
|
5
|
-
import { IInboundSignalMessage } from '@fluidframework/runtime-definitions';
|
|
6
|
-
import { Jsonable } from '@fluidframework/datastore-definitions/internal';
|
|
7
|
-
|
|
8
|
-
/* Excluded from this release type: DataObject */
|
|
9
|
-
|
|
10
|
-
/* Excluded from this release type: DataObjectFactory */
|
|
11
|
-
|
|
12
|
-
/* Excluded from this release type: IRuntimeSignaler */
|
|
13
|
-
|
|
14
|
-
/* Excluded from this release type: ISignaler */
|
|
15
|
-
|
|
16
|
-
/* Excluded from this release type: Jsonable */
|
|
17
|
-
|
|
18
|
-
/* Excluded from this release type: Signaler */
|
|
19
|
-
|
|
20
|
-
/* Excluded from this release type: SignalListener */
|
|
21
|
-
|
|
22
|
-
export { }
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@fluidframework/aqueduct/internal';
|
|
2
|
-
import { DataObjectFactory } from '@fluidframework/aqueduct/internal';
|
|
3
|
-
import { EventEmitter } from '@fluid-internal/client-utils';
|
|
4
|
-
import { IErrorEvent } from '@fluidframework/core-interfaces';
|
|
5
|
-
import { IInboundSignalMessage } from '@fluidframework/runtime-definitions';
|
|
6
|
-
import { Jsonable } from '@fluidframework/datastore-definitions/internal';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Duck type of something that provides the expected signalling functionality:
|
|
10
|
-
* A way to verify we can signal, a way to send a signal, and a way to listen for incoming signals
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
export declare interface IRuntimeSignaler {
|
|
14
|
-
connected: boolean;
|
|
15
|
-
on(event: "signal", listener: (message: IInboundSignalMessage, local: boolean) => void): any;
|
|
16
|
-
submitSignal(type: string, content: Jsonable<unknown>): void;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* ISignaler defines an interface for working with signals that is similar to the more common
|
|
21
|
-
* eventing patterns of EventEmitter. In addition to sending and responding to signals, it
|
|
22
|
-
* provides explicit methods around signal requests to other connected clients.
|
|
23
|
-
* @internal
|
|
24
|
-
*/
|
|
25
|
-
export declare interface ISignaler {
|
|
26
|
-
/**
|
|
27
|
-
* Adds a listener for the specified signal. It behaves in the same way as EventEmitter's `on`
|
|
28
|
-
* method regarding multiple registrations, callback order, etc.
|
|
29
|
-
* @param signalName - The name of the signal
|
|
30
|
-
* @param listener - The callback signal handler to add
|
|
31
|
-
* @returns This ISignaler
|
|
32
|
-
*/
|
|
33
|
-
onSignal<T>(signalName: string, listener: SignalListener<T>): ISignaler;
|
|
34
|
-
/**
|
|
35
|
-
* Remove a listener for the specified signal. It behaves in the same way as EventEmitter's
|
|
36
|
-
* `off` method regarding multiple registrations, removal order, etc.
|
|
37
|
-
* @param signalName - The name of the signal
|
|
38
|
-
* @param listener - The callback signal handler to remove
|
|
39
|
-
* @returns This ISignaler
|
|
40
|
-
*/
|
|
41
|
-
offSignal<T>(signalName: string, listener: SignalListener<T>): ISignaler;
|
|
42
|
-
/**
|
|
43
|
-
* Send a signal with payload to its connected listeners.
|
|
44
|
-
* @param signalName - The name of the signal
|
|
45
|
-
* @param payload - The data to send with the signal
|
|
46
|
-
*/
|
|
47
|
-
submitSignal<T>(signalName: string, payload?: Jsonable<T>): any;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* DataObject implementation of ISignaler for fluid-static plug-and-play. Allows fluid-static
|
|
52
|
-
* users to get an ISignaler without a custom DO.
|
|
53
|
-
* @internal
|
|
54
|
-
*/
|
|
55
|
-
export declare class Signaler extends DataObject<{
|
|
56
|
-
Events: IErrorEvent;
|
|
57
|
-
}> implements EventEmitter, ISignaler {
|
|
58
|
-
private _signaler;
|
|
59
|
-
private get signaler();
|
|
60
|
-
static readonly Name = "@fluid-example/signaler";
|
|
61
|
-
static readonly factory: DataObjectFactory<Signaler, {
|
|
62
|
-
Events: IErrorEvent;
|
|
63
|
-
}>;
|
|
64
|
-
protected hasInitialized(): Promise<void>;
|
|
65
|
-
onSignal<T>(signalName: string, listener: SignalListener<T>): ISignaler;
|
|
66
|
-
offSignal<T>(signalName: string, listener: SignalListener<T>): ISignaler;
|
|
67
|
-
submitSignal<T>(signalName: string, payload?: Jsonable<T>): void;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @internal
|
|
72
|
-
*/
|
|
73
|
-
export declare type SignalListener<T> = (clientId: string, local: boolean, payload: Jsonable<T>) => void;
|
|
74
|
-
|
|
75
|
-
export { }
|
package/dist/tsdoc-metadata.json
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
-
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
-
{
|
|
4
|
-
"tsdocVersion": "0.12",
|
|
5
|
-
"toolPackages": [
|
|
6
|
-
{
|
|
7
|
-
"packageName": "@microsoft/api-extractor",
|
|
8
|
-
"packageVersion": "7.42.3"
|
|
9
|
-
}
|
|
10
|
-
]
|
|
11
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@fluidframework/aqueduct/internal';
|
|
2
|
-
import { DataObjectFactory } from '@fluidframework/aqueduct/internal';
|
|
3
|
-
import { EventEmitter } from '@fluid-internal/client-utils';
|
|
4
|
-
import { IErrorEvent } from '@fluidframework/core-interfaces';
|
|
5
|
-
import { IInboundSignalMessage } from '@fluidframework/runtime-definitions';
|
|
6
|
-
import { Jsonable } from '@fluidframework/datastore-definitions/internal';
|
|
7
|
-
|
|
8
|
-
/* Excluded from this release type: IRuntimeSignaler */
|
|
9
|
-
|
|
10
|
-
/* Excluded from this release type: ISignaler */
|
|
11
|
-
|
|
12
|
-
/* Excluded from this release type: Signaler */
|
|
13
|
-
|
|
14
|
-
/* Excluded from this release type: SignalListener */
|
|
15
|
-
|
|
16
|
-
export { }
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@fluidframework/aqueduct/internal';
|
|
2
|
-
import { DataObjectFactory } from '@fluidframework/aqueduct/internal';
|
|
3
|
-
import { EventEmitter } from '@fluid-internal/client-utils';
|
|
4
|
-
import { IErrorEvent } from '@fluidframework/core-interfaces';
|
|
5
|
-
import { IInboundSignalMessage } from '@fluidframework/runtime-definitions';
|
|
6
|
-
import { Jsonable } from '@fluidframework/datastore-definitions/internal';
|
|
7
|
-
|
|
8
|
-
/* Excluded from this release type: DataObject */
|
|
9
|
-
|
|
10
|
-
/* Excluded from this release type: DataObjectFactory */
|
|
11
|
-
|
|
12
|
-
/* Excluded from this release type: IRuntimeSignaler */
|
|
13
|
-
|
|
14
|
-
/* Excluded from this release type: ISignaler */
|
|
15
|
-
|
|
16
|
-
/* Excluded from this release type: Jsonable */
|
|
17
|
-
|
|
18
|
-
/* Excluded from this release type: Signaler */
|
|
19
|
-
|
|
20
|
-
/* Excluded from this release type: SignalListener */
|
|
21
|
-
|
|
22
|
-
export { }
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@fluidframework/aqueduct/internal';
|
|
2
|
-
import { DataObjectFactory } from '@fluidframework/aqueduct/internal';
|
|
3
|
-
import { EventEmitter } from '@fluid-internal/client-utils';
|
|
4
|
-
import { IErrorEvent } from '@fluidframework/core-interfaces';
|
|
5
|
-
import { IInboundSignalMessage } from '@fluidframework/runtime-definitions';
|
|
6
|
-
import { Jsonable } from '@fluidframework/datastore-definitions/internal';
|
|
7
|
-
|
|
8
|
-
/* Excluded from this release type: DataObject */
|
|
9
|
-
|
|
10
|
-
/* Excluded from this release type: DataObjectFactory */
|
|
11
|
-
|
|
12
|
-
/* Excluded from this release type: IRuntimeSignaler */
|
|
13
|
-
|
|
14
|
-
/* Excluded from this release type: ISignaler */
|
|
15
|
-
|
|
16
|
-
/* Excluded from this release type: Jsonable */
|
|
17
|
-
|
|
18
|
-
/* Excluded from this release type: Signaler */
|
|
19
|
-
|
|
20
|
-
/* Excluded from this release type: SignalListener */
|
|
21
|
-
|
|
22
|
-
export { }
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { DataObject } from '@fluidframework/aqueduct/internal';
|
|
2
|
-
import { DataObjectFactory } from '@fluidframework/aqueduct/internal';
|
|
3
|
-
import { EventEmitter } from '@fluid-internal/client-utils';
|
|
4
|
-
import { IErrorEvent } from '@fluidframework/core-interfaces';
|
|
5
|
-
import { IInboundSignalMessage } from '@fluidframework/runtime-definitions';
|
|
6
|
-
import { Jsonable } from '@fluidframework/datastore-definitions/internal';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Duck type of something that provides the expected signalling functionality:
|
|
10
|
-
* A way to verify we can signal, a way to send a signal, and a way to listen for incoming signals
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
export declare interface IRuntimeSignaler {
|
|
14
|
-
connected: boolean;
|
|
15
|
-
on(event: "signal", listener: (message: IInboundSignalMessage, local: boolean) => void): any;
|
|
16
|
-
submitSignal(type: string, content: Jsonable<unknown>): void;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* ISignaler defines an interface for working with signals that is similar to the more common
|
|
21
|
-
* eventing patterns of EventEmitter. In addition to sending and responding to signals, it
|
|
22
|
-
* provides explicit methods around signal requests to other connected clients.
|
|
23
|
-
* @internal
|
|
24
|
-
*/
|
|
25
|
-
export declare interface ISignaler {
|
|
26
|
-
/**
|
|
27
|
-
* Adds a listener for the specified signal. It behaves in the same way as EventEmitter's `on`
|
|
28
|
-
* method regarding multiple registrations, callback order, etc.
|
|
29
|
-
* @param signalName - The name of the signal
|
|
30
|
-
* @param listener - The callback signal handler to add
|
|
31
|
-
* @returns This ISignaler
|
|
32
|
-
*/
|
|
33
|
-
onSignal<T>(signalName: string, listener: SignalListener<T>): ISignaler;
|
|
34
|
-
/**
|
|
35
|
-
* Remove a listener for the specified signal. It behaves in the same way as EventEmitter's
|
|
36
|
-
* `off` method regarding multiple registrations, removal order, etc.
|
|
37
|
-
* @param signalName - The name of the signal
|
|
38
|
-
* @param listener - The callback signal handler to remove
|
|
39
|
-
* @returns This ISignaler
|
|
40
|
-
*/
|
|
41
|
-
offSignal<T>(signalName: string, listener: SignalListener<T>): ISignaler;
|
|
42
|
-
/**
|
|
43
|
-
* Send a signal with payload to its connected listeners.
|
|
44
|
-
* @param signalName - The name of the signal
|
|
45
|
-
* @param payload - The data to send with the signal
|
|
46
|
-
*/
|
|
47
|
-
submitSignal<T>(signalName: string, payload?: Jsonable<T>): any;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* DataObject implementation of ISignaler for fluid-static plug-and-play. Allows fluid-static
|
|
52
|
-
* users to get an ISignaler without a custom DO.
|
|
53
|
-
* @internal
|
|
54
|
-
*/
|
|
55
|
-
export declare class Signaler extends DataObject<{
|
|
56
|
-
Events: IErrorEvent;
|
|
57
|
-
}> implements EventEmitter, ISignaler {
|
|
58
|
-
private _signaler;
|
|
59
|
-
private get signaler();
|
|
60
|
-
static readonly Name = "@fluid-example/signaler";
|
|
61
|
-
static readonly factory: DataObjectFactory<Signaler, {
|
|
62
|
-
Events: IErrorEvent;
|
|
63
|
-
}>;
|
|
64
|
-
protected hasInitialized(): Promise<void>;
|
|
65
|
-
onSignal<T>(signalName: string, listener: SignalListener<T>): ISignaler;
|
|
66
|
-
offSignal<T>(signalName: string, listener: SignalListener<T>): ISignaler;
|
|
67
|
-
submitSignal<T>(signalName: string, payload?: Jsonable<T>): void;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @internal
|
|
72
|
-
*/
|
|
73
|
-
export declare type SignalListener<T> = (clientId: string, local: boolean, payload: Jsonable<T>) => void;
|
|
74
|
-
|
|
75
|
-
export { }
|