Nude Element API Docs - v0.1.3
    Preparing search index...
    interface PropTypeSpec {
        equals?: (this: PropType, a: unknown, b: unknown) => boolean;
        extends?: string | PropType<PropTypeSpec>;
        is?: string | Function;
        name?: string;
        parse?: (this: PropType, value: unknown) => unknown;
        stringify?: (this: PropType, value: unknown) => string;
        subTypes?: string[];
    }
    Index

    Properties

    equals?: (this: PropType, a: unknown, b: unknown) => boolean
    extends?: string | PropType<PropTypeSpec>

    Explicit parent in the chain — used when the parent differs from registry.get(is) (e.g. concrete types extending an abstract).

    is?: string | Function

    JS constructor (or its global name).

    name?: string

    Registry key for abstract types with no is.

    parse?: (this: PropType, value: unknown) => unknown
    stringify?: (this: PropType, value: unknown) => string
    subTypes?: string[]

    Spec keys whose values are sub-type specs, resolved to PropType instances at construction. A child's list replaces (not extends) the parent's. Unspecified keys default to PropType.any.