Type alias IsNotStrictFunction<T, $O>

IsNotStrictFunction<T, $O>: $SpecialType<T, {
    $any: $ResolveBranch<T, $O, [$Any, $Then]>;
    $else: $ResolveOptions<[$O["distributive"], $SelectInvertStrict.$Default["distributive"]]> extends true
        ? IsNotStrictFunction._D<T, $O>
        : $SelectInvertStrict._N<T, Function, $O>;
    $never: $ResolveBranch<T, $O, [$Never, $Then]>;
    $unknown: $ResolveBranch<T, $O, [$Unknown, $Then]>;
}>

Is T not exactly Function.

type R = IsNotStrictFunction<Function> // false

type R = IsNotStrictFunction<() => void> // true
type R = IsNotStrictFunction<(() => void) & { a: 1 }> // true

Type Parameters

Type declaration

Generated using TypeDoc