UNPKG

insomnia-plugin-valorant

Version:
6 lines (5 loc) 279 B
/** * Takes a function that returns a promise and ensures that only one instance of the function is running at a time. * @param func the function to wrap */ export declare function onlyOne<T, U extends unknown[]>(func: (...args: U) => Promise<T>): (...args: U) => Promise<T>;