Rule: no-inferred-empty-object-type

Disallow type inference of {} (empty object type) at function and constructor call sites

Rationale

Prior to TypeScript 3.4, generic type parameters for functions and constructors are inferred as {} (the empty object type) by default when no type parameter is explicitly supplied or when the compiler cannot infer a more specific type. This is often undesirable as the call is meant to be of a more specific type.

Notes:

Config

Not configurable.

Config examples
"no-inferred-empty-object-type": true
Schema
null