Type alias RemoveLastOptional<T>

RemoveLastOptional<T>: T extends [...(infer Head), unknown?]
    ? Head
    : T

Remove the last optional fields of a tuple.

Type Parameters

  • T extends AnyArray

Remarks

An example usage of this type is to remove the overrides parameters of the contract methods, then add our own type/overrides.

Generated using TypeDoc