UNPKG

554 BTypeScriptView Raw
1import { Authority, Credential } from "./model";
2import { GraphQLNamedType, GraphQLFieldConfig } from "graphql";
3import { Context } from "./Context";
4export interface Strategy {
5 name: string;
6 types: GraphQLNamedType[];
7 queryFields: {
8 [field: string]: GraphQLFieldConfig<any, Context, any>;
9 };
10 mutationFields: {
11 [field: string]: GraphQLFieldConfig<any, Context, any>;
12 };
13 authorityModel: {
14 new (data: any): Authority<any>;
15 };
16 credentialModel: {
17 new (data: any): Credential<any>;
18 };
19}