Skip to main content
Version: v10.0.0

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"

Preview​

type NoInferValue<T> = [T][T extends unknown ? 0 : never];