@gql.tada/internal
Advanced tools
Comparing version 0.3.0-canary-3c09253dc57ece41320907f966ceceb5265b2b49 to 0.3.0-canary-3d3d6fa74e6a37ac25a932c1a03b10873ecb040c
# @gql.tada/internal | ||
## 0.3.0-canary-3c09253dc57ece41320907f966ceceb5265b2b49 | ||
## 0.3.0-canary-3d3d6fa74e6a37ac25a932c1a03b10873ecb040c | ||
@@ -10,2 +10,7 @@ ### Minor Changes | ||
### Patch Changes | ||
- Update `loadRef` to reflect `tada*` options to result types | ||
Submitted by [@kitten](https://github.com/kitten) (See [#259](https://github.com/0no-co/gql.tada/pull/259)) | ||
## 0.2.4 | ||
@@ -12,0 +17,0 @@ |
@@ -11,2 +11,5 @@ import { IntrospectionQuery, GraphQLSchema } from 'graphql'; | ||
schema: GraphQLSchema; | ||
tadaOutputLocation?: string; | ||
tadaTurboLocation?: string; | ||
tadaPersistedLocation?: string; | ||
} | ||
@@ -23,5 +26,15 @@ type OnSchemaUpdate = (result: SchemaLoaderResult) => void; | ||
} | ||
type SingleSchemaInput = { | ||
name?: string; | ||
schema: SchemaOrigin; | ||
tadaOutputLocation?: string; | ||
tadaTurboLocation?: string; | ||
tadaPersistedLocation?: string; | ||
}; | ||
type MultiSchemaInput = { | ||
schemas?: SingleSchemaInput[]; | ||
}; | ||
interface SchemaRef<Result = SchemaLoaderResult | null> { | ||
/** Starts automatically updating the ref */ | ||
autoupdate(): () => void; | ||
autoupdate(onUpdate: (ref: SchemaRef<Result>, input: SingleSchemaInput) => void): () => void; | ||
/** Loads the initial result for the schema */ | ||
@@ -70,11 +83,4 @@ load(): Promise<SchemaRef<SchemaLoaderResult>>; | ||
declare function load(config: LoadConfig): SchemaLoader; | ||
type SingleSchema = { | ||
name?: string; | ||
schema: SchemaOrigin; | ||
}; | ||
type MultiSchema = { | ||
schemas?: SingleSchema[]; | ||
}; | ||
declare function loadRef( | ||
input: SingleSchema | MultiSchema | (SingleSchema & MultiSchema), | ||
input: SingleSchemaInput | MultiSchemaInput | (SingleSchemaInput & MultiSchemaInput), | ||
config?: BaseLoadConfig | ||
@@ -173,2 +179,3 @@ ): SchemaRef; | ||
type LoadConfigResult, | ||
type MultiSchemaInput, | ||
type OnSchemaUpdate, | ||
@@ -180,2 +187,3 @@ type SchemaConfig, | ||
type SchemaRef, | ||
type SingleSchemaInput, | ||
TSError, | ||
@@ -182,0 +190,0 @@ TadaError, |
{ | ||
"name": "@gql.tada/internal", | ||
"version": "0.3.0-canary-3c09253dc57ece41320907f966ceceb5265b2b49", | ||
"version": "0.3.0-canary-3d3d6fa74e6a37ac25a932c1a03b10873ecb040c", | ||
"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
374893
6207