UNPKG

@olakai/sdk

Version:

This document demonstrates how to use the Olakai SDK with all its features.

21 lines 738 B
"use strict"; /** * Helper functions to make monitoring easier and more intuitive */ Object.defineProperty(exports, "__esModule", { value: true }); exports.olakaiSupervisor = olakaiSupervisor; const monitor_1 = require("./monitor"); /** * 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 */ function olakaiSupervisor(fn, options) { const monitorOptions = { ...options, }; return (0, monitor_1.monitor)(monitorOptions)(fn); } //# sourceMappingURL=helpers.js.map