UNPKG

@httpx/assert

Version:
14 lines (11 loc) 423 B
import { M as MsgOrErrorFactory } from './internal.types-D5VRBw-5.cjs'; /** * @throws TypeError */ declare function assertNever(v: never, msgOrErrorFactory?: MsgOrErrorFactory): never; /** * A slight variation of assertNever that doesn't throw in runtime and * will return the value. Typechecks are still enforced. */ declare function assertNeverNoThrow(v: never): never; export { assertNever, assertNeverNoThrow };