2.1.4 • Published 2 years ago

@types/koa-docs v2.1.4

Weekly downloads
45
License
MIT
Repository
github
Last release
2 years ago

Installation

npm install --save @types/koa-docs

Summary

This package contains type definitions for koa-docs (https://github.com/a-s-o/koa-docs#readme).

Details

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

index.d.ts

// Type definitions for koa-docs 2.1
// Project: https://github.com/a-s-o/koa-docs#readme
// Definitions by: 4doge <https://github.com/4doge>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4

import { Middleware } from 'koa';
import { Spec } from 'koa-joi-router';

export {};

declare namespace koaDocs {
    interface Options {
        title?: string | undefined;
        version: string;
        routeHandlers?: string | undefined;
        theme?: string | undefined;
        groups: Array<{
            groupName: string;
            description?: string | undefined;
            extendedDescription?: string | undefined;
            prefix?: string | undefined;
            routes: Spec[];
        }>;
    }
}

export function get(path: string, options: koaDocs.Options): Middleware;

Additional Details

Credits

These definitions were written by 4doge.

2.1.2

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.1

4 years ago

2.1.0

6 years ago