Skip to main content
Version: v7.0.0

FetchParamsType

If the request endpoint parameters are not filled it will throw an error


Import
import { FetchParamsType } from "@hyper-fetch/core"

Preview

type FetchParamsType<Params,HasParams> = Params extends EmptyTypes | void | never ? { params?: EmptyTypes } : HasParams extends true ? { params?: EmptyTypes } : { params: Params };
On this page