Type alias StrictPush<Schema, InNotation>

StrictPush<Schema, InNotation>: ContainsArr<InNotation> extends true
    ? {
        [K in keyof ArrayUpdate<InNotation>]?: ArrayUpdate<InNotation>[K] | {
            $each: ArrayUpdate<InNotation>[K][];
            $position?: number;
        }
    }
    : TypeErr<"Can not perform array operation on a schema with no arrays">

Strongly types the push operation (inc. dot notation schema).

Type Parameters