Function with an unconstrained parameter list and a configurable return type.
Callback return type.
Argument types deliberately use any so callbacks with specific parameters remain assignable. Calls through this type don't check argument types, so prefer Callback when callers need a checked parameter list.
any
const getLength: AnyCallback<number> = (value: string) => value.length; Copy
const getLength: AnyCallback<number> = (value: string) => value.length;
Function with an unconstrained parameter list and a configurable return type.