@graphql-tools/utils 7.8.0-alpha-4fedab51.0 → 7.8.0
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.
- package/es5/index.cjs.js +20 -20
- package/es5/index.cjs.js.map +1 -1
- package/es5/index.esm.js +21 -21
- package/es5/index.esm.js.map +1 -1
- package/es5/loaders.d.ts +1 -6
- package/es5/package.json +1 -1
- package/es5/print-schema-with-directives.d.ts +1 -1
- package/index.cjs.js +10 -10
- package/index.cjs.js.map +1 -1
- package/index.esm.js +11 -11
- package/index.esm.js.map +1 -1
- package/loaders.d.ts +1 -6
- package/package.json +1 -1
- package/print-schema-with-directives.d.ts +1 -1
package/loaders.d.ts
CHANGED
|
@@ -7,11 +7,7 @@ export interface Source {
|
|
|
7
7
|
rawSDL?: string;
|
|
8
8
|
location?: string;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
11
|
-
cacheable?<TPointer, TOptions>(fn: (pointer: TPointer, options?: TOptions) => PromiseLike<Source | never>, pointer: TPointer, options?: TOptions): Promise<Source | never>;
|
|
12
|
-
cacheableSync?<TPointer, TOptions>(fn: (pointer: TPointer, options?: TOptions) => Source | never, pointer: TPointer, options?: TOptions): Source | never;
|
|
13
|
-
}
|
|
14
|
-
export declare type SingleFileOptions = GraphQLParseOptions & GraphQLSchemaValidationOptions & BuildSchemaOptions & Cacheable & {
|
|
10
|
+
export declare type SingleFileOptions = GraphQLParseOptions & GraphQLSchemaValidationOptions & BuildSchemaOptions & {
|
|
15
11
|
cwd?: string;
|
|
16
12
|
};
|
|
17
13
|
export declare type WithList<T> = T | T[];
|
|
@@ -22,7 +18,6 @@ export declare type DocumentGlobPathPointer = string;
|
|
|
22
18
|
export declare type DocumentPointer = WithList<DocumentGlobPathPointer>;
|
|
23
19
|
export declare type DocumentPointerSingle = ElementOf<DocumentPointer>;
|
|
24
20
|
export interface Loader<TPointer = string, TOptions extends SingleFileOptions = SingleFileOptions> {
|
|
25
|
-
cacheable?: boolean;
|
|
26
21
|
loaderId(): string;
|
|
27
22
|
canLoad(pointer: TPointer, options?: TOptions): Promise<boolean>;
|
|
28
23
|
canLoadSync?(pointer: TPointer, options?: TOptions): boolean;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { GetDocumentNodeFromSchemaOptions, PrintSchemaWithDirectivesOptions } fr
|
|
|
3
3
|
export declare function getDocumentNodeFromSchema(schema: GraphQLSchema, options?: GetDocumentNodeFromSchemaOptions): DocumentNode;
|
|
4
4
|
export declare function printSchemaWithDirectives(schema: GraphQLSchema, options?: PrintSchemaWithDirectivesOptions): string;
|
|
5
5
|
export declare function astFromSchema(schema: GraphQLSchema, pathToDirectivesInExtensions: Array<string>): SchemaDefinitionNode | SchemaExtensionNode;
|
|
6
|
-
export declare function astFromDirective(directive: GraphQLDirective, schema
|
|
6
|
+
export declare function astFromDirective(directive: GraphQLDirective, schema?: GraphQLSchema, pathToDirectivesInExtensions?: Array<string>): DirectiveDefinitionNode;
|
|
7
7
|
export declare function getDirectiveNodes(entity: GraphQLSchema | GraphQLNamedType | GraphQLEnumValue, schema: GraphQLSchema, pathToDirectivesInExtensions: Array<string>): Array<DirectiveNode>;
|
|
8
8
|
export declare function getDeprecatableDirectiveNodes(entity: GraphQLArgument | GraphQLField<any, any> | GraphQLInputField, schema: GraphQLSchema, pathToDirectivesInExtensions: Array<string>): Array<DirectiveNode>;
|
|
9
9
|
export declare function astFromArg(arg: GraphQLArgument, schema: GraphQLSchema, pathToDirectivesInExtensions: Array<string>): InputValueDefinitionNode;
|