Type alias SGHookFunc<T>

SGHookFunc<T>: ((target: SGHookTarget<T>, invokeInfo: {
    args: {
        [key: string]: any;
    };
    context: SGResolveContext;
    info: GraphQLResolveInfo;
    sgContext: SGContext;
    source?: any;
}, next: (() => Promise<any>)) => Promise<any>)

Type Parameters

  • T = any

Type declaration

    • (target: SGHookTarget<T>, invokeInfo: {
          args: {
              [key: string]: any;
          };
          context: SGResolveContext;
          info: GraphQLResolveInfo;
          sgContext: SGContext;
          source?: any;
      }, next: (() => Promise<any>)): Promise<any>
    • Parameters

      • target: SGHookTarget<T>
      • invokeInfo: {
            args: {
                [key: string]: any;
            };
            context: SGResolveContext;
            info: GraphQLResolveInfo;
            sgContext: SGContext;
            source?: any;
        }
        • args: {
              [key: string]: any;
          }
          • [key: string]: any
        • context: SGResolveContext
        • info: GraphQLResolveInfo
        • sgContext: SGContext
        • Optional source?: any
      • next: (() => Promise<any>)
          • (): Promise<any>
          • Returns Promise<any>

      Returns Promise<any>

Generated using TypeDoc