graphql-composer
Version:
Create your GraphQL API using composition!
16 lines (15 loc) • 693 B
TypeScript
import { Directive } from "../definition";
import { Buildable } from "./Buildable";
export declare class GQLElement<BuiltType, NameType = string, ExtensionsType = any> extends Buildable<BuiltType, ExtensionsType> {
protected _name: NameType & string;
protected _directives: Directive[];
get definitionNode(): any;
get description(): string;
get name(): NameType & string;
get directives(): Directive<any>[];
protected constructor(name?: NameType & string);
setName(name: NameType & string): this;
setDirectives(...directives: Directive[]): this;
addDirectives(...directives: Directive[]): this;
removeDirectives(...directives: Directive[]): this;
}