Function assertModel

  • A helper function to use in type guards asserting that a value is a model. This currently wraps the assert method which is not exposed by the library. In the future, we might replace this with a custom error.

    Parameters

    • condition: boolean
    • Optional message: string

    Returns asserts condition

Generated using TypeDoc