1.0.4 • Published 2 years ago
@types/koa-joi-router-docs v1.0.4
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
// Type definitions for koa-joi-router-docs 1.0
// Project: https://github.com/o2team/koa-joi-router-docs#readme
// Definitions by: 4doge <https://github.com/4doge>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4
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
- Last updated: Thu, 08 Jul 2021 16:23:22 GMT
- Dependencies: @types/koa-joi-router
- Global values: none
Credits
These definitions were written by 4doge.