Skip to content

Commit

Permalink
Added typings for custom Swagger specfications generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
deskoh committed Dec 1, 2019
1 parent a45688b commit a921538
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// TypeScript Version: 2.8
// TypeScript Version: 2.9

import { Request, Response } from 'express';
import { Service } from '@feathersjs/feathers';
Expand Down Expand Up @@ -217,3 +217,12 @@ declare namespace feathersSwagger {

function security(method: string, securities: Securities, security: UnknownObject[]): UnknownObject[];
}

declare module '@feathersjs/adapter-commons' {
interface AdapterService<T = any> {
/**
* Docs for Swagger specfications generation.
*/
docs: feathersSwagger.ServiceSwaggerOptions;
}
}

0 comments on commit a921538

Please sign in to comment.