krapio
Library referenceTypes

ClientOptions

type ClientOptions = {
  apiKey?: string;
  baseUrl?: string;
  fetch?: FetchLike;
  logger?: Logger;
  retries?: number;
  timeoutMs?: number;
  userAgent?: string;
};

options shared by every tier; apiKey only matters for the developer api

Properties

PropertyTypeDescription
apiKey?stringomitted for the keyless endpoints, empty means not configured
baseUrl?string-
fetch?FetchLike-
logger?Logger-
retries?numberextra attempts after a network error or a 5xx, never after a 4xx
timeoutMs?number-
userAgent?string-

On this page