Skip to content

Instantly share code, notes, and snippets.

@jazzdan
Created March 17, 2016 18:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jazzdan/24c253c06e92e1fe9d46 to your computer and use it in GitHub Desktop.
Save jazzdan/24c253c06e92e1fe9d46 to your computer and use it in GitHub Desktop.
childNodeFromParent: function(parentNode: TaxonomyNode, partialChild: Map<string, any>): Map<string, any> {
if (!partialChild.has("name")) {
throw Error("partialChild must contain a name key");
}
let newName = partialChild.get("name");
src/data/taxonomy.js:1238
1238: let newName = partialChild.get("name");
^^^^^^^^^^^^^^^^^^^^^^^^ call of method `get`. Function cannot be called on
1238: let newName = partialChild.get("name");
^^^^^^^^^^^^^^^^^^^^^^^^ intersection: polymorphic type: function type(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment