@kayahr/assert
    Preparing search index...

    Function assertAssignable

    • Asserts at compile time that the actual type and the expected type are mutually assignable.

      This function does nothing at runtime. TypeScript reports an error unless the expected type is assignable to the actual type and the actual type is assignable to the expected type.

      Type Parameters

      • Expected

        The expected type.

      • Actual extends unknown

        The actual type.

      Returns void