Type alias LengthedArgs

LengthedArgs: {
    length: -1 | number;
}

a commonly used argument interface in many data types with variable lengths (strings, arrays, arrays of arrays, etc...).
when the length is set to -1, it should indicate that the forward parsing should be executed till the very end. no other negative number should be used besides -1.
furthermore, in the backwards transformation, a length argument that originally was -1 will turn into the actual length of the object, rather than convert back into -1.

Type declaration

  • length: -1 | number

Generated using TypeDoc