From a81b6c8105cdd6c5fcdc167e7657e08d21864979 Mon Sep 17 00:00:00 2001 From: Carmine DiMascio Date: Sun, 22 Dec 2019 23:37:32 -0500 Subject: [PATCH] type annotations --- src/middlewares/parameters.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middlewares/parameters.ts b/src/middlewares/parameters.ts index 69430bf9..c0b633ce 100644 --- a/src/middlewares/parameters.ts +++ b/src/middlewares/parameters.ts @@ -154,7 +154,7 @@ export class Parameters { this.parseObjectExplode.push({ reqField, name, properties }); - function xOfProperties(schema: Schema) { + function xOfProperties(schema: Schema): string[] { return ['allOf', 'oneOf', 'anyOf'].reduce((acc, key) => { if (!schema.hasOwnProperty(key)) { return acc;