@gql.tada/internal
Advanced tools
Comparing version 0.3.0-canary-3d3d6fa74e6a37ac25a932c1a03b10873ecb040c to 0.3.0-canary-92d094cc29ae2fc73a9f8ff9c0ef6b24fdf52552
# @gql.tada/internal | ||
## 0.3.0-canary-3d3d6fa74e6a37ac25a932c1a03b10873ecb040c | ||
## 0.3.0-canary-92d094cc29ae2fc73a9f8ff9c0ef6b24fdf52552 | ||
@@ -5,0 +5,0 @@ ### Minor Changes |
@@ -25,2 +25,7 @@ import { IntrospectionQuery, GraphQLSchema } from 'graphql'; | ||
} | ||
interface BaseLoadConfig { | ||
rootPath?: string; | ||
fetchInterval?: number; | ||
assumeValid?: boolean; | ||
} | ||
type SingleSchemaInput = { | ||
@@ -38,5 +43,8 @@ name?: string; | ||
/** Starts automatically updating the ref */ | ||
autoupdate(onUpdate: (ref: SchemaRef<Result>, input: SingleSchemaInput) => void): () => void; | ||
autoupdate( | ||
config: BaseLoadConfig, | ||
onUpdate: (ref: SchemaRef<Result>, input: SingleSchemaInput) => void | ||
): () => void; | ||
/** Loads the initial result for the schema */ | ||
load(): Promise<SchemaRef<SchemaLoaderResult>>; | ||
load(config: BaseLoadConfig): Promise<SchemaRef<SchemaLoaderResult>>; | ||
current: Result; | ||
@@ -74,8 +82,4 @@ multi: { | ||
} | null; | ||
interface BaseLoadConfig { | ||
rootPath?: string; | ||
fetchInterval?: number; | ||
assumeValid?: boolean; | ||
} | ||
interface LoadConfig extends BaseLoadConfig { | ||
name?: string; | ||
origin: SchemaOrigin; | ||
@@ -85,4 +89,3 @@ } | ||
declare function loadRef( | ||
input: SingleSchemaInput | MultiSchemaInput | (SingleSchemaInput & MultiSchemaInput), | ||
config?: BaseLoadConfig | ||
input: SingleSchemaInput | MultiSchemaInput | (SingleSchemaInput & MultiSchemaInput) | ||
): SchemaRef; | ||
@@ -89,0 +92,0 @@ |
{ | ||
"name": "@gql.tada/internal", | ||
"version": "0.3.0-canary-3d3d6fa74e6a37ac25a932c1a03b10873ecb040c", | ||
"version": "0.3.0-canary-92d094cc29ae2fc73a9f8ff9c0ef6b24fdf52552", | ||
"public": true, | ||
@@ -5,0 +5,0 @@ "description": "Internal logic for gql.tada’s CLI tool and GraphQLSP.", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
376864
6234