Skip to content

Commit 9569130

Browse files
committed
Fix typings for SwaggerInitOptions.defaults.getOperationRefs, closes #185
1 parent 2992aa3 commit 9569130

File tree

4 files changed

+3
-13
lines changed

4 files changed

+3
-13
lines changed

package-lock.json

Lines changed: 0 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
"@feathersjs/feathers": "^4.3.0",
6464
"@mairu/swagger-ui-apikey-auth-form": "^1.0.0",
6565
"@types/express": "^4.16.1",
66-
"@types/feathersjs__feathers": "^3.1.5",
6766
"chai": "^4.2.0",
6867
"cors": "^2.8.5",
6968
"dtslint": "^2.0.2",

types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ interface OperationRefs {
4040
[customMethodRef: string]: string | undefined;
4141
}
4242

43-
interface FnGetOperationRefs {
43+
interface FnGetOperationsRefs {
4444
(model: string, service: feathersSwagger.SwaggerService<any>): OperationRefs;
4545
}
4646

@@ -117,7 +117,7 @@ declare namespace feathersSwagger {
117117
appProperty?: string;
118118
defaults?: {
119119
getOperationArgs?: FnGetOperationArgs;
120-
getOperationRefs?: FnGetOperationRefs;
120+
getOperationsRefs?: FnGetOperationsRefs;
121121
schemasGenerator?: FnSchemasGenerator;
122122
operationGenerators?: {
123123
find?: FnOperationSpecsGenerator;

types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ swagger({
2020
appProperty: 'docs',
2121
defaults: {
2222
getOperationArgs({ service, config, apiPath, path, version }: GetOperationArgsOptions) { return {}; },
23-
getOperationRefs(model: string, service: SwaggerService<any>) {
23+
getOperationsRefs(model: string, service: SwaggerService<any>) {
2424
return {
2525
createRequest: 'model',
2626
createResponse: 'model',

0 commit comments

Comments
 (0)