/
githubmirror
/
trpc
Обзор
Документация
Войти
/
githubmirror
/
trpc
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/client/src/links/HTTPBatchLinkOptions.ts
24 строки
802 B
Alex / KATT
feat: rm unstable (#6617)
21 мар 2025, 13:39
Не верифицирован
21 мар 2025, 13:39
0244dee
Код
Авторство
О чём код?
import type { AnyClientTypes } from '@trpc/server/unstable-core-do-not-import'; import type { NonEmptyArray } from '../internals/types'; import type { HTTPLinkBaseOptions } from './internals/httpUtils'; import type { HTTPHeaders, Operation } from './types'; export type HTTPBatchLinkOptions<TRoot extends AnyClientTypes> = HTTPLinkBaseOptions<TRoot> & { maxURLLength?: number; /** * Headers to be set on outgoing requests or a callback that of said headers * @see http://trpc.io/docs/client/headers */ headers?: | HTTPHeaders | ((opts: { opList: NonEmptyArray<Operation>; }) => HTTPHeaders | Promise<HTTPHeaders>); /** * Maximum number of calls in a single batch request * @default Infinity */ maxItems?: number; };