type alias Wire

T as the client reads it from JSON, over HTTP, the socket or localStorage, where every Date has become an ISO string.

Type Parameters

Definition

T extends Date ? string : T extends readonly (infer U)[] ? Wire<U>[] : T extends object ? [K in keyof T]: Wire<T[K]> : T

Usage

import { type Wire } from "shared/api.ts";