@envelop/types
Advanced tools
Comparing version 0.3.0 to 0.4.0-alpha-28c2e60.0
@@ -20,2 +20,9 @@ import { DocumentNode, execute, ExecutionArgs, ExecutionResult, GraphQLError, GraphQLResolveInfo, GraphQLSchema, parse, ParseOptions, Source, subscribe, SubscriptionArgs, TypeInfo, validate, ValidationRule } from 'graphql'; | ||
export declare type OnPluginInitHook = (options: OnPluginInitEventPayload) => void; | ||
/** onPluginInit */ | ||
export declare type OnEnvelopedHookEventPayload<ContextType> = { | ||
setSchema: SetSchemaFn; | ||
context: Readonly<ContextType>; | ||
extendContext: (contextExtension: Partial<ContextType>) => void; | ||
}; | ||
export declare type OnEnvelopedHook<ContextType> = (options: OnEnvelopedHookEventPayload<ContextType>) => void; | ||
/** onParse */ | ||
@@ -22,0 +29,0 @@ export declare type OriginalParseFn = typeof parse; |
{ | ||
"name": "@envelop/types", | ||
"version": "0.3.0", | ||
"version": "0.4.0-alpha-28c2e60.0", | ||
"sideEffects": false, | ||
@@ -5,0 +5,0 @@ "peerDependencies": { |
@@ -0,3 +1,5 @@ | ||
import { OnEnvelopedHook } from 'packages/core/src'; | ||
import { OnContextBuildingHook, OnExecuteHook, OnParseHook, OnPluginInitHook, OnSchemaChangeHook, OnSubscribeHook, OnValidateHook } from './hooks'; | ||
export interface Plugin<PluginContext extends Record<string, any> = {}> { | ||
onEnveloped?: OnEnvelopedHook<PluginContext>; | ||
onSchemaChange?: OnSchemaChangeHook; | ||
@@ -4,0 +6,0 @@ onPluginInit?: OnPluginInitHook; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12035
207