Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cast "header" to ParameterLocation to avoid ts-node 6.x error #21

Merged
merged 1 commit into from
Apr 20, 2018

Conversation

raymondfeng
Copy link
Contributor

This is really weird. I see the following error from inside VSCode:

Argument of type '{ name: string; in: string; schema: { $ref: string; }; }' is not assignable to parameter of type 'ParameterObject'.
  Types of property 'in' are incompatible.
    Type 'string' is not assignable to type 'ParameterLocation'.

But TypeScript claims it's fixed by microsoft/TypeScript#10676

@pjmolina
Copy link
Contributor

Thanks!

Yes. That the point!
We avoided literal types till your PR for such reason. It were causing problems like this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants