You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Functions in TypeScript often don't need to be given an explicit return type annotation. Leaving off the return type is less > code to read or write and allows the compiler to infer it from the contents of the function.
However, explicit return types do make it visually more clear what type is returned by a function. They can also speed up > TypeScript type checking performance in large codebases with many large functions.
This rule enforces that functions do have an explicit return type annotation.
1 + 1 === 2 at worst case deno test takes 30 seconds, due to type checking is included by default.
https://typescript-eslint.io/rules/explicit-function-return-type/
1 + 1 === 2
at worst case deno test takes 30 seconds, due to type checking is included by default.denoland/deno#16116
https://deno.land/std@0.158.0/node/assert.ts?source#L240
The text was updated successfully, but these errors were encountered: