[openapi-factory] set strictFunctionTypes to true and change import in example code

This commit is contained in:
runebaas
2018-12-08 01:19:16 +01:00
parent 7bba952b57
commit ec2874d4b8
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
import * as OpenApiFactory from 'openapi-factory';
import OpenApiFactory = require('openapi-factory');
const api = new OpenApiFactory({});

View File

@@ -7,7 +7,7 @@
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": false,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"