cdeops 12.0.1-alpha.21 → 12.0.3-alpha.80
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/client.d.ts +176 -10
- package/package.json +2 -2
- package/src/cdeops.d.ts +1209 -1235
- package/src/cdeops.proposed.d.ts +1 -4
- package/src/subscription.d.ts +20 -25
package/src/cdeops.proposed.d.ts
CHANGED
package/src/subscription.d.ts
CHANGED
|
@@ -1,31 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3
2
|
declare module 'cdeops' {
|
|
4
|
-
|
|
5
3
|
export interface Unsubscribable {
|
|
6
4
|
unsubscribe(): void;
|
|
7
5
|
}
|
|
8
6
|
|
|
9
7
|
/** Support types for {@link Subscribable}. */
|
|
10
8
|
interface NextObserver<T> {
|
|
11
|
-
closed?: boolean
|
|
12
|
-
next: (value: T) => void
|
|
13
|
-
error?: (err: any) => void
|
|
14
|
-
complete?: () => void
|
|
9
|
+
closed?: boolean;
|
|
10
|
+
next: (value: T) => void;
|
|
11
|
+
error?: (err: any) => void;
|
|
12
|
+
complete?: () => void;
|
|
15
13
|
}
|
|
16
14
|
interface ErrorObserver<T> {
|
|
17
|
-
closed?: boolean
|
|
18
|
-
next?: (value: T) => void
|
|
19
|
-
error: (err: any) => void
|
|
20
|
-
complete?: () => void
|
|
15
|
+
closed?: boolean;
|
|
16
|
+
next?: (value: T) => void;
|
|
17
|
+
error: (err: any) => void;
|
|
18
|
+
complete?: () => void;
|
|
21
19
|
}
|
|
22
20
|
interface CompletionObserver<T> {
|
|
23
|
-
closed?: boolean
|
|
24
|
-
next?: (value: T) => void
|
|
25
|
-
error?: (err: any) => void
|
|
26
|
-
complete: () => void
|
|
21
|
+
closed?: boolean;
|
|
22
|
+
next?: (value: T) => void;
|
|
23
|
+
error?: (err: any) => void;
|
|
24
|
+
complete: () => void;
|
|
27
25
|
}
|
|
28
|
-
type PartialObserver<T> = NextObserver<T> | ErrorObserver<T> | CompletionObserver<T
|
|
26
|
+
type PartialObserver<T> = NextObserver<T> | ErrorObserver<T> | CompletionObserver<T>;
|
|
29
27
|
|
|
30
28
|
/**
|
|
31
29
|
* A stream of values that may be subscribed to.
|
|
@@ -37,18 +35,18 @@ declare module 'cdeops' {
|
|
|
37
35
|
* @returns An unsubscribable that, when its {@link Unsubscribable#unsubscribe} method is called, causes
|
|
38
36
|
* the subscription to stop reacting to the stream.
|
|
39
37
|
*/
|
|
40
|
-
subscribe(observer?: PartialObserver<T>): Unsubscribable
|
|
38
|
+
subscribe(observer?: PartialObserver<T>): Unsubscribable;
|
|
41
39
|
/** @deprecated Use an observer instead of a complete callback */
|
|
42
|
-
subscribe(next: null | undefined, error: null | undefined, complete: () => void): Unsubscribable
|
|
40
|
+
subscribe(next: null | undefined, error: null | undefined, complete: () => void): Unsubscribable;
|
|
43
41
|
/** @deprecated Use an observer instead of an error callback */
|
|
44
|
-
subscribe(next: null | undefined, error: (error: any) => void, complete?: (() => void) | null): Unsubscribable
|
|
42
|
+
subscribe(next: null | undefined, error: (error: any) => void, complete?: (() => void) | null): Unsubscribable;
|
|
45
43
|
/** @deprecated Use an observer instead of a complete callback */
|
|
46
|
-
subscribe(next: (value: T) => void, error: null | undefined, complete: () => void): Unsubscribable
|
|
44
|
+
subscribe(next: (value: T) => void, error: null | undefined, complete: () => void): Unsubscribable;
|
|
47
45
|
subscribe(
|
|
48
46
|
next?: ((value: T) => void) | null,
|
|
49
47
|
error?: ((error: any) => void) | null,
|
|
50
|
-
complete?: (() => void) | null
|
|
51
|
-
): Unsubscribable
|
|
48
|
+
complete?: (() => void) | null,
|
|
49
|
+
): Unsubscribable;
|
|
52
50
|
}
|
|
53
51
|
|
|
54
52
|
// /**
|
|
@@ -57,7 +55,4 @@ declare module 'cdeops' {
|
|
|
57
55
|
// * or more values.
|
|
58
56
|
// */
|
|
59
57
|
// export type ProviderResult<T> =
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
58
|
}
|