Interface ArrayArgs<ITEM_ARGS>

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.

interface ArrayArgs<ITEM_ARGS> {
    item: ITEM_ARGS;
    length: number;
}

Type Parameters

  • ITEM_ARGS

Hierarchy (view full)

Properties

Properties

item: ITEM_ARGS
length: number

Generated using TypeDoc