function foo(): string {
}
Currently in nightly, you'll get the error
error TS2847: A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value.
But this error message is inaccurate, as you can now annotate with unknown.
Currently in nightly, you'll get the error
But this error message is inaccurate, as you can now annotate with
unknown.