interface / @typed/ui/Dom/Types

InternalPropsHelpers

Helpers available while constructing component-owned host props.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
Internal prop defaults
Since
1.0.0

Import

import { InternalPropsHelpers } from "@typed/ui/Dom/Types";

Signatures

export interface InternalPropsHelpers<Options> {
    readonly property: <const Key extends PropertyKey, const Fallback>(key: Key, fallback: Fallback) => NonNullish<Property<Options, Key>> | Fallback;
}

Why

Internal defaults can read generic options while retaining exact non-nullish output types.

Ownership and lifetime

Helpers retain only the options object during synchronous prop construction.

Property: property

Reads an option and substitutes fallback only for null or undefined.

Other public imports

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

Source