UNPKG

reiso

Version:
17 lines (16 loc) 1.68 kB
import { GraphQLSchema } from 'graphql'; export { SubscriptionManager, Subscribe, Publish } from './GraphQL/SubscriptionManager'; import { FieldType, MutationOption, SubscriptionOption, SubscriptionArgOption, ConstructorOption, ModelArg, StructureOption, FieldOption, ArgOption, InputFieldOption, InputOption } from './GraphQL/Model'; export declare function getSchema(): GraphQLSchema; export declare function getSubscriptionSchema(): GraphQLSchema; export declare function clearModel(): void; export declare function Query(name: string): (target: any) => void; export declare function Mutation(options: MutationOption): (target: any) => void; export declare function Structure(id: string, options?: StructureOption): (target: any) => any; export declare function Input(id: string, options?: InputOption): (target: any) => void; export declare function Subscription(type: FieldType | FieldType[], subscribe: any, options?: SubscriptionOption): (target: any) => void; export declare function SubscriptionArg(type: FieldType | FieldType[], name: string, options?: SubscriptionArgOption): ModelArg; export declare function Field(type: FieldType | FieldType[], options?: FieldOption): (target: any, propertyKey: string) => void; export declare function Arg(type: FieldType | FieldType[], name: string, options?: ArgOption): (target: any, propertyKey: string, descriptor: number) => void; export declare function Constructor(options?: ConstructorOption): (target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<any>) => void; export declare function InputField(type: FieldType | FieldType[], options?: InputFieldOption): (target: any, propertyKey: string) => void;