augment-vir - v32.2.2
    Preparing search index...

    Type Alias Exact<ParameterType, InputType>

    Exact: IsEqual<ParameterType, InputType> extends true
        ? ParameterType
        : ParameterType extends Primitive
            ? ParameterType
            : IsUnknown<ParameterType> extends true
                ? unknown
                : ParameterType extends Function
                    ? ParameterType
                    : ParameterType extends unknown[]
                        ? Exact<ArrayElementOf<ParameterType>, ArrayElementOf<InputType>>[]
                        : ParameterType extends readonly unknown[]
                            ? ReadonlyArray<
                                Exact<ArrayElementOf<ParameterType>, ArrayElementOf<InputType>>,
                            >
                            : ExactObject<ParameterType, InputType>

    Create a type that does not allow extra properties, meaning it only allows properties that are explicitly declared.

    Copied from the Exact type in the type-fest package so that this package's public types do not depend on type-fest (see the note in type-checks.ts).

    Type Parameters

    • ParameterType
    • InputType