Type alias SGHookTarget<T>

SGHookTarget<T>: {
    name: string;
    options?: T;
} & ({
    targetConfig: SGLinkedFieldConfig;
    type: "field";
} | {
    targetConfig: SGQueryConfig;
    type: "query";
} | {
    targetConfig: SGSubscriptionConfig;
    type: "subscription";
} | {
    targetConfig: SGMutationConfig;
    type: "mutation";
})

Type Parameters

  • T = any

Generated using TypeDoc