@types/koa-joi-router-docs
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Installation

npm install --save @types/koa-joi-router-docs

Summary

This package contains type definitions for koa-joi-router-docs (https://github.com/o2team/koa-joi-router-docs#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-joi-router-docs.

index.d.ts

import { Router } from "koa-joi-router";

export {};

declare namespace koaJoiRouterDocs {
    interface SpecConfig {
        info: {
            title: string;
            version: string;
            description: string;
        };
        basePath: string;
        tags: Array<{
            name: string;
            description: string;
        }>;
    }

    interface SpecOptions {
        warnFunc?: (() => void) | undefined;
        defaultResponses?: object | undefined;
    }

    type RouterOptions = object | string;
}

export class SwaggerAPI {
    addJoiRouter(router: Router, options?: koaJoiRouterDocs.RouterOptions): any;
    generateSpec(config: koaJoiRouterDocs.SpecConfig, options?: koaJoiRouterDocs.SpecOptions): object;
}

Additional Details

Credits

These definitions were written by 4doge.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/koa-joi-router-docs

Weekly Downloads

159

Version

1.0.4

License

MIT

Unpacked Size

4.2 kB

Total Files

5

Last publish

Collaborators

  • types