From ec2874d4b8d43ed49da56ff303660fa242b614e2 Mon Sep 17 00:00:00 2001 From: runebaas Date: Sat, 8 Dec 2018 01:19:16 +0100 Subject: [PATCH] [openapi-factory] set strictFunctionTypes to true and change import in example code --- types/openapi-factory/openapi-factory-tests.ts | 2 +- types/openapi-factory/tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/openapi-factory/openapi-factory-tests.ts b/types/openapi-factory/openapi-factory-tests.ts index ad24a5021d..8213104a44 100644 --- a/types/openapi-factory/openapi-factory-tests.ts +++ b/types/openapi-factory/openapi-factory-tests.ts @@ -1,4 +1,4 @@ -import * as OpenApiFactory from 'openapi-factory'; +import OpenApiFactory = require('openapi-factory'); const api = new OpenApiFactory({}); diff --git a/types/openapi-factory/tsconfig.json b/types/openapi-factory/tsconfig.json index e8528e8e84..e9035817a2 100644 --- a/types/openapi-factory/tsconfig.json +++ b/types/openapi-factory/tsconfig.json @@ -7,7 +7,7 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, - "strictFunctionTypes": false, + "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ "../"