Interface IApiInfo<T>

API接口定义

interface IApiInfo<T> {
    $apis: Map<string, default<T>>;
    afterHooks: Set<T>;
    beforeHooks: Set<T>;
    define: ((opt) => default<T>);
    delete: ((path) => default<T>);
    docOutputForamt?: ((out) => any);
    docs?: default;
    formatOutputReverse?: ((out) => [null | Error, any]);
    get: ((path) => default<T>);
    patch: ((path) => default<T>);
    post: ((path) => default<T>);
    put: ((path) => default<T>);
}

Type Parameters

  • T

Hierarchy (view full)

Properties

$apis: Map<string, default<T>>
afterHooks: Set<T>
beforeHooks: Set<T>
define: ((opt) => default<T>)

Type declaration

    • (opt): default<T>
    • Parameters

      Returns default<T>

delete: ((path) => default<T>)

Type declaration

    • (path): default<T>
    • Parameters

      • path: string

      Returns default<T>

docOutputForamt?: ((out) => any)

Type declaration

    • (out): any
    • Parameters

      • out: any

      Returns any

docs?: default
formatOutputReverse?: ((out) => [null | Error, any])

Type declaration

    • (out): [null | Error, any]
    • Parameters

      • out: any

      Returns [null | Error, any]

get: ((path) => default<T>)

Type declaration

    • (path): default<T>
    • Parameters

      • path: string

      Returns default<T>

patch: ((path) => default<T>)

Type declaration

    • (path): default<T>
    • Parameters

      • path: string

      Returns default<T>

post: ((path) => default<T>)

Type declaration

    • (path): default<T>
    • Parameters

      • path: string

      Returns default<T>

put: ((path) => default<T>)

Type declaration

    • (path): default<T>
    • Parameters

      • path: string

      Returns default<T>

Generated using TypeDoc