From 5d652d66a0b92960bde7a4756cb37841fdca675b Mon Sep 17 00:00:00 2001 From: Dave Nicolson Date: Sun, 22 Aug 2021 21:04:53 +0200 Subject: [PATCH] Add types to fix deprecation warning --- src/ServerlessOpenApiDocumentation.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ServerlessOpenApiDocumentation.ts b/src/ServerlessOpenApiDocumentation.ts index db44aa3..fc0f55b 100644 --- a/src/ServerlessOpenApiDocumentation.ts +++ b/src/ServerlessOpenApiDocumentation.ts @@ -42,14 +42,17 @@ export class ServerlessOpenApiDocumentation { output: { usage: 'Output file location [default: openapi.yml|json]', shortcut: 'o', + type: 'string', }, format: { usage: 'OpenAPI file format (yml|json) [default: yml]', shortcut: 'f', + type: 'string', }, indent: { usage: 'File indentation in spaces [default: 2]', shortcut: 'i', + type: 'string', }, }, },