Interface CreateAPIResult<C>

Type Parameters

  • C extends Record<any, any>

Hierarchy

  • CreateAPIResult

Properties

connect: WrapperResult<C>
extendAPI: (<T>(config?) => CreateAPIResult<T & C>)

Type declaration

    • <T>(config?): CreateAPIResult<T & C>
    • Type Parameters

      • T extends Record<any, any>

      Parameters

      • Optional config: Context<T & C, Record<any, any>, Record<any, any>, Record<any, any>, any>

      Returns CreateAPIResult<T & C>

head: WrapperResult<C>
options: WrapperResult<C>
patch: WrapperResult<C>
post: WrapperResult<C>
request: (<D>(config?) => Promise<D>)

Type declaration

    • <D>(config?): Promise<D>
    • Type Parameters

      • D

      Parameters

      • Optional config: Context<C, Record<any, any>, Record<any, any>, Record<any, any>, any>

      Returns Promise<D>

trace: WrapperResult<C>
use: (<K>(key) => ((...args) => number))

Type declaration

    • <K>(key): ((...args) => number)
    • Type Parameters

      • K extends "error" | "after" | "before" | "final"

      Parameters

      • key: K

      Returns ((...args) => number)

        • (...args): number
        • Parameters

          • Rest ...args: Context<C, Record<any, any>, Record<any, any>, Record<any, any>, any>[`${K}s`]

          Returns number

Generated using TypeDoc