@@ -52,36 +52,6 @@ export class DataConnect {
52
52
setInitialized(): void ;
53
53
}
54
54
55
- // @public
56
- export class DataConnectError extends FirebaseError {
57
- readonly code: DataConnectErrorCode ;
58
- }
59
-
60
- // @public (undocumented)
61
- export type DataConnectErrorCode = ' other' | ' already-initialized' | ' not-initialized' | ' not-supported' | ' invalid-argument' | ' partial-error' | ' unauthorized' ;
62
-
63
- // @public
64
- export class DataConnectOperationError extends DataConnectError {
65
- /* Excluded from this release type: name */
66
- readonly response: DataConnectOperationResponse ;
67
- }
68
-
69
- // @public (undocumented)
70
- export interface DataConnectOperationErrorInfo {
71
- // (undocumented)
72
- readonly message: string ;
73
- // (undocumented)
74
- readonly path: Array <string | number >;
75
- }
76
-
77
- // @public (undocumented)
78
- export interface DataConnectOperationResponse {
79
- // (undocumented)
80
- readonly data? : Record <string , unknown > | null ;
81
- // (undocumented)
82
- readonly errors: DataConnectOperationErrorInfo [];
83
- }
84
-
85
55
// @public
86
56
export interface DataConnectOptions extends ConnectorConfig {
87
57
// (undocumented)
@@ -97,7 +67,7 @@ export interface DataConnectResult<Data, Variables> extends OpResult<Data> {
97
67
// @public
98
68
export interface DataConnectSubscription <Data , Variables > {
99
69
// (undocumented)
100
- errCallback? : (e ? : DataConnectError ) => void ;
70
+ errCallback? : (e ? : FirebaseError ) => void ;
101
71
// (undocumented)
102
72
unsubscribe: () => void ;
103
73
// (undocumented)
@@ -113,6 +83,9 @@ export function executeMutation<Data, Variables>(mutationRef: MutationRef<Data,
113
83
// @public
114
84
export function executeQuery<Data , Variables >(queryRef : QueryRef <Data , Variables >): QueryPromise <Data , Variables >;
115
85
86
+ // @public (undocumented)
87
+ export const fdcSymbol: unique symbol ;
88
+
116
89
// @public
117
90
export function getDataConnect(options : ConnectorConfig ): DataConnect ;
118
91
@@ -148,13 +121,15 @@ export interface MutationResult<Data, Variables> extends DataConnectResult<Data,
148
121
export type OnCompleteSubscription = () => void ;
149
122
150
123
// @public
151
- export type OnErrorSubscription = (err ? : DataConnectError ) => void ;
124
+ export type OnErrorSubscription = (err ? : FirebaseError ) => void ;
152
125
153
126
// @public
154
127
export type OnResultSubscription <Data , Variables > = (res : QueryResult <Data , Variables >) => void ;
155
128
156
129
// @public (undocumented)
157
- export interface OperationRef <_Data , Variables > {
130
+ export interface OperationRef <Data , Variables > {
131
+ // (undocumented)
132
+ [fdcSymbol ]? : Data ;
158
133
// (undocumented)
159
134
dataConnect: DataConnect ;
160
135
// (undocumented)
0 commit comments