Type aliases
IsAny
IsAny<T>: (T extends typeof phantom ? true : false) extends false ? false : true
Type parameters
IsUnknown
IsUnknown<T>: IsAny<T> extends true ? false : unknown extends T ? true : false
Type parameters
KnownOrDefault
KnownOrDefault<T, K, D>: IsUnknown<T[K]> extends true ? {} : D extends T[K] ? {} : {}
Type parameters
MethodFetchArgs
MethodFetchArgs<T>: [data: T & { req?: RequestInit }]
Type parameters
MethodImpls
MethodImpls<M, Tr, Ur>: {}
Type parameters
RequestData
RequestData<T>: (IsAny<T> extends true ? true : keyof T extends keyof RequestDataTemplate ? true : false) extends true ? {} & KnownOrDefault<T, "contentType", "application/json"> & KnownOrDefault<T, "params", {}> & KnownOrDefault<T, "query", {}> & KnownOrDefault<T, "body", undefined> : void
Type parameters
ResponseData
ResponseData<T>: (IsAny<T> extends true ? true : keyof T extends keyof ResponseDataTemplate ? true : false) extends true ? {} & KnownOrDefault<T, "contentType", "application/json"> & KnownOrDefault<T, "status", 200> & KnownOrDefault<T, "body", undefined> : void
Type parameters
SupportedContentType
SupportedContentType: "application/json" | "application/x-www-form-urlencoded" | "text/plain"
Resolves to
true
if and only ifT
isany
,false
otherwise.