EmptyableType: {
    length: number;
} | {
    count: number;
} | IEnumerable<unknown> | string | unknown[]

Notes:

Have tried to do Iterable but the problem is that in the spec iterable has no guarantee that it is re-playable so any type of iteration on it to see if it is empty will move it next.

Type declaration

  • length: number

Type declaration

  • count: number

Generated using TypeDoc