Skip to content

Commit

Permalink
fix: add missing type key to plugin types
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel910 committed May 28, 2020
1 parent 9554a89 commit fc0c29d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/graphql/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export type SchemaDefinitionFactory = (params: {
}) => GraphQLSchemaModule | Promise<GraphQLSchemaModule>;

export type GraphQLSchemaPlugin<T = Context> = Plugin & {
type: "graphql-schema";
prepare?: (params: { context: T }) => Promise<void>;
schema: GraphQLSchemaModule | SchemaDefinitionFactory;
[key: string]: any;
Expand All @@ -28,6 +29,7 @@ export type ContextPlugin<T = Context> = Plugin & {
};

export type GraphQLScalarPlugin = Plugin & {
type: "graphql-scalar";
scalar: GraphQLScalarType;
};

Expand Down

0 comments on commit fc0c29d

Please sign in to comment.