canonical
canonical copied to clipboard
False error report on default arguments with flow-annotations
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?