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

    Class MilanoEngine<R, P>

    The long-lived object: one vocabulary, one registry, one policy, and the resource limits. Immutable after creation and safe to share; every view is built from it.

    Type Parameters

    • R = unknown
    • P = R
    Index
    defaultUnknownTypePolicy: MilanoUnknownTypePolicy
    functionHandler: MilanoFunctionHandler | null
    limits: MilanoLimits
    observer: MilanoObserver | null

    Retained for the engine's lifetime, like the other runtimes.

    registry: MilanoRegistry<R, P>
    userInteractionObserver: MilanoUserInteractionObserver | null
    vocabulary: MilanoVocabulary
    • A builder for one document, given as text or as raw bytes. With bytes, the document-size limit is checked against exactly those bytes.

      Parameters

      • document: string | Uint8Array<ArrayBufferLike>

      Returns MilanoViewBuilder<R, P>