This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Description
TS 1.6 introduces user-defined type guard functions:
function isCat(a: Animal): a is Cat {
return a.name === 'kitty';
}
It could help with type inference (ie removing explicit cast) in Angular.
Do we want to support this in ts2dart ?
It should transpile to
bool isCat(Animal a) {
// ...
}
/ref microsoft/TypeScript#1007