Ir al contenido

RequestOptions

Esta página aún no está disponible en tu idioma.

Type@tryyoursize/node

Options of one call: the last argument of every method.

interface RequestOptions
idempotencyKeystring | undefinedOpcional

Idempotency-Key for this POST (default: a random UUID, reused across this call's retries).

timeoutMsnumber | undefinedOpcional

Overrides the client's timeout for this call.

maxRetriesnumber | undefinedOpcional

Overrides the client's maxRetries for this call.

apiVersionstring | undefinedOpcional

Overrides the client's TYS-Version for this call.

headersRecord<string, string> | undefinedOpcional

Extra request headers.

signalAbortSignal | undefinedOpcional

Aborts the call (not retried).

await tys.orders.create(order, { idempotencyKey: `order-${order.id}`, timeoutMs: 10_000 });

¿Te ha resultado útil esta página?