Files
klz-cables.com/.pnpm-store/v10/files/e7/c7990f7fca242056920037a6aaa2e6572969afbaba26c943506fdd037ce0c57be2eb1fba0a5d002c3fbf8803606ef7b174525dc16e0f034b207aacdb1ae36e
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

91 lines
3.0 KiB
Plaintext

import type { Maybe } from '../jsutils/Maybe';
import type { DirectiveDefinitionNode } from '../language/ast';
import { DirectiveLocation } from '../language/directiveLocation';
import type {
GraphQLArgument,
GraphQLFieldConfigArgumentMap,
} from './definition';
/**
* Test if the given value is a GraphQL directive.
*/
export declare function isDirective(
directive: unknown,
): directive is GraphQLDirective;
export declare function assertDirective(directive: unknown): GraphQLDirective;
/**
* Custom extensions
*
* @remarks
* Use a unique identifier name for your extension, for example the name of
* your library or project. Do not use a shortened identifier as this increases
* the risk of conflicts. We recommend you add at most one extension field,
* an object which can contain all the values you need.
*/
export interface GraphQLDirectiveExtensions {
[attributeName: string]: unknown;
}
/**
* Directives are used by the GraphQL runtime as a way of modifying execution
* behavior. Type system creators will usually not create these directly.
*/
export declare class GraphQLDirective {
name: string;
description: Maybe<string>;
locations: ReadonlyArray<DirectiveLocation>;
args: ReadonlyArray<GraphQLArgument>;
isRepeatable: boolean;
extensions: Readonly<GraphQLDirectiveExtensions>;
astNode: Maybe<DirectiveDefinitionNode>;
constructor(config: Readonly<GraphQLDirectiveConfig>);
get [Symbol.toStringTag](): string;
toConfig(): GraphQLDirectiveNormalizedConfig;
toString(): string;
toJSON(): string;
}
export interface GraphQLDirectiveConfig {
name: string;
description?: Maybe<string>;
locations: ReadonlyArray<DirectiveLocation>;
args?: Maybe<GraphQLFieldConfigArgumentMap>;
isRepeatable?: Maybe<boolean>;
extensions?: Maybe<Readonly<GraphQLDirectiveExtensions>>;
astNode?: Maybe<DirectiveDefinitionNode>;
}
interface GraphQLDirectiveNormalizedConfig extends GraphQLDirectiveConfig {
args: GraphQLFieldConfigArgumentMap;
isRepeatable: boolean;
extensions: Readonly<GraphQLDirectiveExtensions>;
}
/**
* Used to conditionally include fields or fragments.
*/
export declare const GraphQLIncludeDirective: GraphQLDirective;
/**
* Used to conditionally skip (exclude) fields or fragments.
*/
export declare const GraphQLSkipDirective: GraphQLDirective;
/**
* Constant string used for default reason for a deprecation.
*/
export declare const DEFAULT_DEPRECATION_REASON = 'No longer supported';
/**
* Used to declare element of a GraphQL schema as deprecated.
*/
export declare const GraphQLDeprecatedDirective: GraphQLDirective;
/**
* Used to provide a URL for specifying the behavior of custom scalar definitions.
*/
export declare const GraphQLSpecifiedByDirective: GraphQLDirective;
/**
* Used to indicate an Input Object is a OneOf Input Object.
*/
export declare const GraphQLOneOfDirective: GraphQLDirective;
/**
* The full list of specified directives.
*/
export declare const specifiedDirectives: ReadonlyArray<GraphQLDirective>;
export declare function isSpecifiedDirective(
directive: GraphQLDirective,
): boolean;
export {};