mobx-keystone
    Preparing search index...

    Function typeCheck

    • Checks if a value conforms to a given type.

      Type Parameters

      Parameters

      • type: T

        Type to check for.

      • value: TypeToData<T>

        Value to check.

      Returns TypeCheckError | null

      A TypeError if the check fails or null if no error.