Type Alias Computed<T>

Computed: {
    "[toStringTag]": "Computed";
    get(): T;
    map<U extends {}>(fn: (v: T) => U | Promise<U>): Computed<U>;
    tap(matcher: TapMatcher<T> | (v: T) => void | () => void): () => void;
}

Type Parameters

  • T extends {}

Type declaration

  • [toStringTag]: "Computed"
  • get:function
    • Returns T

  • map:function
    • Type Parameters

      • U extends {}

      Parameters

      • fn: (v: T) => U | Promise<U>

      Returns Computed<U>

  • tap:function
    • Parameters

      • matcher: TapMatcher<T> | (v: T) => void | () => void

      Returns () => void