Open moshner opened 5 years ago
Hey!
How can I type values()
?
For example this:
this.list.filter(function (item: ListItem) {
if (bool) {
return item.values().protected === "1";
}
return true;
});
give a error because protected
does not exist on values()
I know I can ignore it @ts-ignore
but... Is it possible?
@thewasta This issue should be reported to the DefinitelyTyped repo (in case you are using that type definitions)
Can you please provide a definitions file for typescript? http://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html
Here is a great repo: https://github.com/DefinitelyTyped/DefinitelyTyped