Skip to content

Commit

Permalink
fix(rest): use direct import to work around a TS bug
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondfeng committed Sep 10, 2018
1 parent be1f42b commit a77970c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"js-yaml": "^3.11.0",
"lodash": "^4.17.5",
"openapi-schema-to-json-schema": "^2.1.0",
"openapi3-ts": "^1.0.0",
"parseurl": "^1.3.2",
"path-to-regexp": "^2.2.0",
"qs": "^6.5.2",
Expand Down
7 changes: 6 additions & 1 deletion packages/rest/src/keys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@

import {CoreBindings} from '@loopback/core';
import {BindingKey, Context} from '@loopback/context';
import {OpenApiSpec} from '@loopback/openapi-v3-types';

/**
* See https://github.com/Microsoft/TypeScript/issues/26985
*/
// import {OpenApiSpec} from '@loopback/openapi-v3-types';
import {OpenAPIObject as OpenApiSpec} from 'openapi3-ts';

import {HttpHandler} from './http-handler';
import {SequenceHandler} from './sequence';
Expand Down

0 comments on commit a77970c

Please sign in to comment.