canonical icon indicating copy to clipboard operation
canonical copied to clipboard

False error report on default arguments with flow-annotations

Open bitspook opened this issue 9 years ago • 0 comments

    getDatesToDisplay = (startDate : string, numberOfDatesToDisplay: number, language : string = 'en') => { ... }

This function gets transpiled (by pragmatist) just fine however canonical complains it as parse error.

Or is there some other syntax for default params with flow notation I am missing?

bitspook avatar Dec 22 '15 14:12 bitspook