@@ -55,12 +55,6 @@ export interface ApolloModuleOptions extends ApolloSharedConfig {
5555 * @default true
5656 */
5757 autoImports ?: boolean
58-
59- /**
60- * Enable devtools integration
61- * @default true
62- */
63- devtools ?: boolean
6458}
6559
6660/**
@@ -103,7 +97,7 @@ export interface ApolloSharedAuthConfig {
10397/**
10498 * Shared configuration options for Apollo Client and Module
10599 */
106- export interface ApolloSharedConfig {
100+ export interface ApolloSharedConfig extends Pick < ApolloClient . Options , 'assumeImmutableResults' | 'dataMasking' | 'defaultOptions' | 'localState' | 'queryDeduplication' > {
107101 /**
108102 * Tùy chọn bổ sung cho HTTP link.
109103 * Cho phép tùy chỉnh headers, credentials, fetch options, v.v.
@@ -118,9 +112,9 @@ export interface ApolloSharedConfig {
118112 httpLinkOptions ?: Omit < HttpLink . Options , 'uri' >
119113
120114 /**
121- * Tùy chọn bổ sung cho WebSocket link.
122- * Cho phép tùy chỉnh connection params, retry logic, keepAlive, v.v .
123- * Chỉ có hiệu lực khi `wsEndpoint` được cấu hình .
115+ * Additional options for WebSocket link.
116+ * Allows customizing connection params, retry logic, keepAlive, etc .
117+ * Only effective when `wsEndpoint` is configured .
124118 *
125119 * @example
126120 * ```ts
@@ -138,28 +132,6 @@ export interface ApolloSharedConfig {
138132 */
139133 devtools ?: boolean
140134
141- /**
142- * Default options for Apollo Client operations.
143- * Allows configuration of fetch policies, error handling, polling intervals, etc.
144- *
145- * @example
146- * ```ts
147- * {
148- * watchQuery: {
149- * fetchPolicy: 'cache-and-network'
150- * },
151- * query: {
152- * fetchPolicy: 'network-only',
153- * errorPolicy: 'all'
154- * },
155- * mutate: {
156- * errorPolicy: 'all'
157- * }
158- * }
159- * ```
160- */
161- defaultOptions ?: ApolloClient . DefaultOptions
162-
163135 /**
164136 * Configuration options for Apollo Client's InMemoryCache.
165137 * Allows customization of type policies, cache normalization, pagination, etc.
0 commit comments