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

services type fixes #4249

Merged
merged 2 commits into from
Sep 9, 2016
Merged

services type fixes #4249

merged 2 commits into from
Sep 9, 2016

Conversation

erwinmombay
Copy link
Member

No description provided.

@@ -219,6 +219,7 @@ export class Log {
* @param {...*} var_args Arguments substituted into %s in the message.
* @return {T} The value of shouldBeTrueish.
* @template T
* @throws {Error}
Copy link
Member

Choose a reason for hiding this comment

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

Lets not spam the code base with these.

Copy link
Member Author

Choose a reason for hiding this comment

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

should i remove here then? didnt realize the compiler doesnt even use it besides detecting side effects

Copy link
Member

Choose a reason for hiding this comment

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

Are you sure it is being used at all? I don't think so. Probably on externs
only.

On Jul 28, 2016 10:21 AM, "erwin mombay" [email protected] wrote:

In src/log.js
#4249 (comment):

@@ -219,6 +219,7 @@ export class Log {
* @param {...*} var_args Arguments substituted into %s in the message.
* @return {T} The value of shouldBeTrueish.
* @template T

should i remove here then? didnt realize the compiler doesnt even use it
besides detecting side effects


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ampproject/amphtml/pull/4249/files/7ef905fb26fde6d8e3f030df76a6c780dba8d889#r72581746,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAFeT6itAXu5wks1ywbO7YO617Kpzhzvks5qaGZ9gaJpZM4JWvb9
.

Copy link
Member Author

Choose a reason for hiding this comment

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

you are right, that is the case. "The type checker does not currently use this information. It is only used to figure out if a function declared in an externs file has side effects"

@erwinmombay erwinmombay force-pushed the type-pass-5 branch 5 times, most recently from 524bd64 to 846769d Compare July 28, 2016 16:51
@@ -124,7 +124,7 @@ export class Viewer {
/** @private {number} */
this.prerenderSize_ = 1;

/** @private {string} */
/** @private {ViewportType} */
Copy link
Contributor

Choose a reason for hiding this comment

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

!ViewportType?

Copy link
Member Author

Choose a reason for hiding this comment

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

yep, thanks.

@erwinmombay erwinmombay force-pushed the type-pass-5 branch 2 times, most recently from 66ba186 to 4473a3d Compare August 17, 2016 04:47
@erwinmombay erwinmombay changed the title [WIP] v-services type fixes services type fixes Sep 8, 2016
@erwinmombay
Copy link
Member Author

@cramforce PTAL

@cramforce
Copy link
Member

LGTM

Idea: Comment the "Number of errors" after the change in each of these changes :)

@erwinmombay
Copy link
Member Author

178 errors

@erwinmombay erwinmombay merged commit 7755e66 into ampproject:master Sep 9, 2016
dreamofabear pushed a commit to dreamofabear/amphtml that referenced this pull request Sep 16, 2016
* more xhr type fixes

* v-services type fixes
mityaha pushed a commit to ooyala/amphtml that referenced this pull request Nov 30, 2016
* more xhr type fixes

* v-services type fixes
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.

3 participants