Skip to content

Generate TypeScript strict mode compatible code. #3

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

Merged
merged 1 commit into from
Jan 25, 2018

Conversation

ddunkin
Copy link
Contributor

@ddunkin ddunkin commented Jan 20, 2018

No description provided.

@@ -366,7 +366,7 @@ class ExampleApiHttpClient implements IExampleApi {
return fetchResponse(this._fetch, this._baseUri + uri, fetchRequest)
.then(result => {
const status = result.response.status;
let value: IGetWidgetsResponse = null;
let value: IGetWidgetsResponse | null = null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can/should this be IGetWidgetsResponse? instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It cannot.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it's not valid TypeScript. ;)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh! 😊

@ddunkin ddunkin merged commit 26fa51a into FacilityApi:master Jan 25, 2018
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