unknownReturnThis function exposes `unknown` to its caller. Parse the value at its boundary and return a named domain type.small-rules/no-unknown-returnsDisallow functions whose explicit return contract is unknown or Promise<unknown>.
Ported from dmmulroy/anti-slop. A function that returns
unknown pushes parsing work onto every caller. Decode once at the boundary and return the named
domain contract instead.
unknownReturnThis function exposes `unknown` to its caller. Parse the value at its boundary and return a named domain type.This rule does not accept options.
function load(): unknown { return input; }function load(): User { return user; }