Type alias CopyTagged<Tag, Payload>

CopyTagged<Tag, Payload>: PassStyled<"tagged", Tag> & {
    payload: Payload;
}

A Passable "tagged record" with semantics specific to the tag identified in the [Symbol.toStringTag] property (such as 'copySet', 'copyBag', or 'copyMap'). It must have a property with key equal to the PASS_STYLE export and value 'tagged' and no other properties except [Symbol.toStringTag] and payload.

Type Parameters

  • Tag extends string = string
  • Payload extends Passable = any

Type declaration

Generated using TypeDoc