NoInferValue
Keeps a parameter out of type inference, so the field decides the type and the value is checked against it.
TypeScript's own
NoInfer
needs 5.4, and the API docs and older consumers compile with earlier versions.
Import
import { NoInferValue } from "@hyper-fetch/db"
Source
Package
Preview
type NoInferValue<T> = [T][T extends unknown ? 0 : never];
