@get-milano/core 2.1.0
    Preparing search index...

    Class MilanoValue

    Milano: Document-Driven UI. Documents in, resolved trees out, validated by a strict gate. This package is the contract engine: no UI toolkit, no dependencies, conformant against the shared vector suite.

    Index
    null: MilanoValue = ...
    • get numberValue(): number | null

      An int or double as a JS number, for renderers reading counts and measures. Exact for every value a UI realistically carries; ints beyond 2^53 lose precision, and intValue stays exact for those.

      Returns number | null

    • get size(): number

      The document model's value size, the unit of the value size limit: one for a scalar or null, one per Unicode scalar for a string, and one plus the sizes of the elements or fields for an array or a record.

      Returns number

    • A 64-bit signed integer. Values outside the range wrap, so an int value is always a valid Int64 by construction, as it is on the other runtimes where the type itself enforces the range.

      A non-finite number has no integer to wrap, a case the statically typed runtimes cannot even express: NaN becomes 0 and each infinity saturates, exactly as the $int() expression builtin defines it.

      Parameters

      • value: number | bigint

      Returns MilanoValue