object-shape-tester - v5.1.6
    Preparing search index...

    Type Alias ShapeDefinition<Shape, IsReadonly>

    The output of defineShape. This is a shape definition which includes the shape itself (used for shape testing), a runtimeType, and a defaultValue.

    type ShapeDefinition<Shape, IsReadonly extends boolean> = {
        __vir__shape__definition__key__do__not__use__in__actual__objects: true;
        defaultValue: Readonly<ShapeToRuntimeType<Shape, false, IsReadonly>>;
        isReadonly: IsReadonly;
        runtimeType: ShapeToRuntimeType<Shape, false, IsReadonly>;
        shape: Shape;
    }

    Type Parameters

    • Shape
    • IsReadonly extends boolean
    Index

    Properties

    __vir__shape__definition__key__do__not__use__in__actual__objects: true
    defaultValue: Readonly<ShapeToRuntimeType<Shape, false, IsReadonly>>
    isReadonly: IsReadonly
    runtimeType: ShapeToRuntimeType<Shape, false, IsReadonly>
    shape: Shape