Variable endpointInitShapeConst
endpointInitShape: Shape<
{
bypassResponseValidation: Shape<
TOptional<TUnion<(TUndefined | TBoolean | TNull)[]>>,
>;
customProps: Shape<
TOptional<TUnion<(TUndefined | TUnsafe<Record<never, unknown>>)[]>>,
>;
methods: TUnsafe<Partial<Record<HttpMethod, boolean>>>;
requestDataShape: Shape<TUnsafe<unknown>>;
requiredClientOrigin: Shape<
TOptional<
TUnion<
(
| TUndefined
| TUnsafe<{ allOrigins: boolean }>
| TUnsafe<{ anyOrigin: boolean }>
| TUnsafe<RegExp>
| TString
| TUnsafe<() => void>
| TArray<TUnion<((...) | (...) | (...) | (...))[]>>
)[],
>,
>,
>;
responseDataShape: Shape<TUnsafe<unknown>>;
searchParamsShape: Shape<TUnsafe<unknown>>;
},
> = ...
Used to validate EndpointInit inside of
defineService.