UNPKG

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