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

fix(source): fix mismatched return type #45

Merged
merged 1 commit into from
Jan 10, 2018

Conversation

wallw-teal
Copy link
Contributor

@wallw-teal wallw-teal commented Jan 10, 2018

There was an inferred union type here {Array<!(ColumnDefinition\|FeatureTypeColumn)>} that the compiler is not detecting as a mismatch with the declared type. I opened google/closure-compiler#2783 with the compiler. This issue was causing filters programmatically created from histogram bins to fail.

I also removed a superfluous, empty interface.

@@ -1,6 +1,6 @@
goog.provide('os.data.ColumnDefinition');
goog.require('os.IPersistable');
goog.require('os.parse.IColumnDefinition');
goog.require('os.data.ColumnDefinition');
Copy link
Contributor

Choose a reason for hiding this comment

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

Guessing this was from search/replace, but this file is now requiring itself.

@@ -27,9 +26,9 @@ os.data.ColumnDefinition = function(opt_name, opt_field) {

/**
* The field
* @type {string}
* @type {!string}
Copy link
Contributor

Choose a reason for hiding this comment

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

! is implied for primitives. You also removed the || '', which would allow this value to be null/undefined if opt_name and opt_field aren't provided.

There was an inferred union type here {Array<!(ColumnDefinition\|FeatureTypeColumn)>} that the

compiler is not detecting as a mismatch with the declared type. I opened

google/closure-compiler#2783 with the compiler. This issue was causing

filters programmatically created from histogram bins to fail.
@wallw-teal wallw-teal merged commit 4f3650f into ngageoint:master Jan 10, 2018
wallw-teal pushed a commit that referenced this pull request Feb 12, 2018
…rowser_button_to_browsercheck to master

* commit '870fcbd4c7b85fc32274bde25b5731a44690ab49':
  feat(browser): Sync browser check between os and misc
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.

None yet

2 participants