Skip to content

Commit

Permalink
Propagate GraphQLLoadingObject type change to BaseStore and ObserverP…
Browse files Browse the repository at this point in the history
…arams
  • Loading branch information
gwennlbh committed Nov 11, 2024
1 parent 921d993 commit 248b0e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions packages/houdini-svelte/src/runtime/stores/base.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { DocumentStore, type ObserveParams } from '$houdini/runtime/client'
import type {
GraphQLObject,
DocumentArtifact,
QueryResult,
GraphQLLoadingObject,
GraphQLVariables,
QueryResult,
} from '$houdini/runtime/lib/types'
import { get } from 'svelte/store'
import type { Readable } from 'svelte/store'
import { get } from 'svelte/store'

import { isBrowser } from '../adapter'
import { getClient, initClient } from '../client'

export class BaseStore<
_Data extends GraphQLObject,
_Data extends GraphQLLoadingObject,
_Input extends GraphQLVariables,
_Artifact extends DocumentArtifact = DocumentArtifact
> {
Expand Down
8 changes: 4 additions & 4 deletions packages/houdini/src/runtime/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ import cacheRef from '../cache'
import type { Cache } from '../cache/cache'
import { getCurrentConfig, localApiEndpoint } from '../lib'
import { flatten } from '../lib/flatten'
import type { DocumentArtifact, GraphQLVariables, GraphQLObject, NestedList } from '../lib/types'
import type { DocumentArtifact, GraphQLLoadingObject, GraphQLObject, GraphQLVariables, NestedList } from '../lib/types'
import type { ClientHooks, ClientPlugin } from './documentStore'
import { DocumentStore } from './documentStore'
import type { FetchParamFn, ThrowOnErrorOperations, ThrowOnErrorParams } from './plugins'
import {
fetch as fetchPlugin,
fetchParams as fetchParamsPlugin,
fetch as fetchPlugin,
fragment as fragmentPlugin,
mutation as mutationPlugin,
optimisticKeys,
query as queryPlugin,
throwOnError as throwOnErrorPlugin,
optimisticKeys,
} from './plugins'
import pluginsFromPlugins from './plugins/injectedPlugins'

Expand All @@ -31,7 +31,7 @@ export type HoudiniClientConstructorArgs = {
}

export type ObserveParams<
_Data extends GraphQLObject,
_Data extends GraphQLLoadingObject,
_Artifact extends DocumentArtifact = DocumentArtifact,
_Input extends GraphQLVariables = GraphQLVariables
> = {
Expand Down

0 comments on commit 248b0e9

Please sign in to comment.