type-alias / @typed/template/Wire

Rendered.Values

Extract the values from a Rendered type

Package version
1.0.0-beta.7
Category
Native output shapes
Since
1.0.0
Member of
Rendered

Import

import { Rendered } from "@typed/template/Wire";

Access Rendered.Values through the imported Rendered export. Its declaration below describes the member.

Signatures

type Values<T extends Rendered> = [
    T
] extends [
    ReadonlyArray<infer R>
] ? ReadonlyArray<R | Exclude<T, ReadonlyArray<any>>> : ReadonlyArray<T>;

Why

Renderer helpers can normalize scalar and array output at the type level.

Ownership and lifetime

This projection owns no values.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source