_Stop type

Utility type to evaluate if a recursive conditional evaluation should stop.

export declare type _Stop<Set extends unknown[], Current extends unknown[]> = Set['length'] extends Current['length'] ? true : false;

Remarks

If Set and Current are the same length, then all values have been recursed upon.