@olakai/sdk
Version:
This document demonstrates how to use the Olakai SDK with all its features.
13 lines • 770 B
TypeScript
/**
* Helper functions to make monitoring easier and more intuitive
*/
import type { MonitorOptions } from "./types";
/**
* Mnitor function that automatically captures everything by default and sends the data to the Olakai API
* No type parameters needed - TypeScript will infer them
* @param fn - The function to monitor
* @param options - The eventual options for the monitored function
* @returns The monitored function
*/
export declare function olakaiSupervisor<T extends (...args: any[]) => any>(fn: T, options?: Partial<MonitorOptions<Parameters<T>, ReturnType<T>>>): T extends (...args: any[]) => Promise<any> ? (...args: Parameters<T>) => Promise<ReturnType<T>> : (...args: Parameters<T>) => Promise<ReturnType<T>>;
//# sourceMappingURL=helpers.d.ts.map