@nxtedition/deepstream.io-client-js 31.2.15 → 31.2.16
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/package.json
CHANGED
|
@@ -10,6 +10,11 @@ import type {
|
|
|
10
10
|
|
|
11
11
|
type Lookup<Table, Name> = Name extends keyof Table ? Table[Name] : unknown
|
|
12
12
|
|
|
13
|
+
type Disposer = {
|
|
14
|
+
(): void
|
|
15
|
+
[Symbol.dispose](): void
|
|
16
|
+
}
|
|
17
|
+
|
|
13
18
|
export default class RecordHandler<Records = Record<string, unknown>> {
|
|
14
19
|
VOID: 0
|
|
15
20
|
CLIENT: 1
|
|
@@ -41,7 +46,7 @@ export default class RecordHandler<Records = Record<string, unknown>> {
|
|
|
41
46
|
pattern: string,
|
|
42
47
|
callback: (key: string) => unknown,
|
|
43
48
|
optionsOrRecursive?: ProvideOptions | boolean,
|
|
44
|
-
) =>
|
|
49
|
+
) => Disposer
|
|
45
50
|
|
|
46
51
|
sync: (options?: SyncOptions) => Promise<void>
|
|
47
52
|
|
|
@@ -223,6 +228,7 @@ export interface RecordStats {
|
|
|
223
228
|
export interface ProvideOptions {
|
|
224
229
|
recursive?: boolean
|
|
225
230
|
stringify?: ((input: unknown) => string) | null
|
|
231
|
+
mode: undefined | null | 'unicast'
|
|
226
232
|
}
|
|
227
233
|
|
|
228
234
|
export interface SyncOptions {
|