UNPKG

@prismicio/client

Version:

The official JavaScript + TypeScript client library for Prismic

16 lines (15 loc) 546 B
/** * Logs a message. If the message is identical the immediate previous logged * message and that message was logged within 5 seconds of the current call, the * log is ignored. This throttle behavior prevents identical messages from * flooding the console. * * @param message - A message to log. * @param config - Configuration for the log. */ export declare const throttledLog: (message: string, config?: { /** * The log level. Matches the global `console` log levels. */ level?: "log" | "warn" | "error"; }) => void;