houdini 1.0.0-next.6 → 1.0.0-next.7

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.
@@ -9,7 +9,7 @@ export declare class DocumentStore<_Data extends GraphQLObject, _Input extends R
9
9
  artifact: DocumentArtifact;
10
10
  plugins?: ClientPlugin[];
11
11
  pipeline?: ClientPlugin[];
12
- client: HoudiniClient;
12
+ client: HoudiniClient | null;
13
13
  cache?: boolean;
14
14
  initialValue?: _Data | null;
15
15
  fetching?: boolean;
@@ -12,14 +12,15 @@ type ConstructorArgs = {
12
12
  pipeline?: ClientPlugin[];
13
13
  throwOnError?: ThrowOnErrorParams;
14
14
  };
15
+ export type ObserveParams<_Data extends GraphQLObject, _Artifact extends DocumentArtifact = DocumentArtifact> = {
16
+ artifact: _Artifact;
17
+ cache?: boolean;
18
+ initialValue?: _Data | null;
19
+ fetching?: boolean;
20
+ };
15
21
  export declare class HoudiniClient {
16
22
  #private;
17
23
  url: string;
18
24
  constructor({ url, fetchParams, plugins, pipeline, throwOnError }: ConstructorArgs);
19
- observe<_Data extends GraphQLObject, _Input extends Record<string, any>>({ artifact, cache, initialValue, fetching, }: {
20
- artifact: DocumentArtifact;
21
- cache?: boolean;
22
- initialValue?: _Data | null;
23
- fetching?: boolean;
24
- }): DocumentStore<_Data, _Input>;
25
+ observe<_Data extends GraphQLObject, _Input extends Record<string, any>>({ artifact, cache, initialValue, fetching, }: ObserveParams<_Data>): DocumentStore<_Data, _Input>;
25
26
  }
@@ -9,7 +9,7 @@ export declare class DocumentStore<_Data extends GraphQLObject, _Input extends R
9
9
  artifact: DocumentArtifact;
10
10
  plugins?: ClientPlugin[];
11
11
  pipeline?: ClientPlugin[];
12
- client: HoudiniClient;
12
+ client: HoudiniClient | null;
13
13
  cache?: boolean;
14
14
  initialValue?: _Data | null;
15
15
  fetching?: boolean;
@@ -12,14 +12,15 @@ type ConstructorArgs = {
12
12
  pipeline?: ClientPlugin[];
13
13
  throwOnError?: ThrowOnErrorParams;
14
14
  };
15
+ export type ObserveParams<_Data extends GraphQLObject, _Artifact extends DocumentArtifact = DocumentArtifact> = {
16
+ artifact: _Artifact;
17
+ cache?: boolean;
18
+ initialValue?: _Data | null;
19
+ fetching?: boolean;
20
+ };
15
21
  export declare class HoudiniClient {
16
22
  #private;
17
23
  url: string;
18
24
  constructor({ url, fetchParams, plugins, pipeline, throwOnError }: ConstructorArgs);
19
- observe<_Data extends GraphQLObject, _Input extends Record<string, any>>({ artifact, cache, initialValue, fetching, }: {
20
- artifact: DocumentArtifact;
21
- cache?: boolean;
22
- initialValue?: _Data | null;
23
- fetching?: boolean;
24
- }): DocumentStore<_Data, _Input>;
25
+ observe<_Data extends GraphQLObject, _Input extends Record<string, any>>({ artifact, cache, initialValue, fetching, }: ObserveParams<_Data>): DocumentStore<_Data, _Input>;
25
26
  }
@@ -9,7 +9,7 @@ export declare class DocumentStore<_Data extends GraphQLObject, _Input extends R
9
9
  artifact: DocumentArtifact;
10
10
  plugins?: ClientPlugin[];
11
11
  pipeline?: ClientPlugin[];
12
- client: HoudiniClient;
12
+ client: HoudiniClient | null;
13
13
  cache?: boolean;
14
14
  initialValue?: _Data | null;
15
15
  fetching?: boolean;
@@ -12,14 +12,15 @@ type ConstructorArgs = {
12
12
  pipeline?: ClientPlugin[];
13
13
  throwOnError?: ThrowOnErrorParams;
14
14
  };
15
+ export type ObserveParams<_Data extends GraphQLObject, _Artifact extends DocumentArtifact = DocumentArtifact> = {
16
+ artifact: _Artifact;
17
+ cache?: boolean;
18
+ initialValue?: _Data | null;
19
+ fetching?: boolean;
20
+ };
15
21
  export declare class HoudiniClient {
16
22
  #private;
17
23
  url: string;
18
24
  constructor({ url, fetchParams, plugins, pipeline, throwOnError }: ConstructorArgs);
19
- observe<_Data extends GraphQLObject, _Input extends Record<string, any>>({ artifact, cache, initialValue, fetching, }: {
20
- artifact: DocumentArtifact;
21
- cache?: boolean;
22
- initialValue?: _Data | null;
23
- fetching?: boolean;
24
- }): DocumentStore<_Data, _Input>;
25
+ observe<_Data extends GraphQLObject, _Input extends Record<string, any>>({ artifact, cache, initialValue, fetching, }: ObserveParams<_Data>): DocumentStore<_Data, _Input>;
25
26
  }