2 ms·
The proposed syntax is function f(val:any): val is SomeType { do checking and return boolean } and will be most likely available in 1.5.
by spion 12y ago
The proposed syntax is
function f(val:any): val is SomeType {
do checking and return boolean
}
and will be most likely available in 1.5.