mobx-keystone
    Preparing search index...

    Class SnapshotTypeMismatchError

    Thrown when a snapshot value does not match any of the expected types in a union (extends MobxKeystoneError).

    Use instanceof SnapshotTypeMismatchError to distinguish snapshot type-mismatch errors from other MobxKeystoneError instances.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    actualValue: any
    cause?: unknown
    expectedTypeName: string
    message: string
    modelTrail?: readonly string[]
    name: string
    path: Path
    stack?: string

    Methods

    • Indicates whether the argument provided is a built-in Error instance or not.

      Parameters

      • error: unknown

      Returns error is Error