Interface $Type<T, M, V>

🧰 type util

Special type-plus interface to represent unique types with messages.

interface $Type<T, M, V> {
    message: M;
    type: T;
    value: V;
}

Type Parameters

  • T extends string
  • M extends string = ""
  • V = unknown

Properties

Properties

message: M
type: T
value: V