outers
Version:
outers - a all in one package for your day to day use
78 lines (77 loc) • 3.82 kB
TypeScript
/**
* Executes the provided function after a specified delay.
* @param func The function to be executed.
* @param ms The delay in milliseconds.
* @returns A promise that resolves after the delay and the function execution.
*/
export declare const Ms: (func: () => any, ms: number) => Promise<void>;
/**
* Delays the execution of a function by a specified number of seconds.
* @param func - The function to be executed after the delay.
* @param seconds - The number of seconds to delay the execution.
* @returns A promise that resolves after the specified delay.
*/
export declare const Seconds: (func: () => any, seconds: number) => Promise<void>;
/**
* Delays the execution of a function for a specified number of minutes.
* @param func - The function to be executed after the delay.
* @param minutes - The number of minutes to delay the execution.
* @returns A promise that resolves after the specified delay.
*/
export declare const Minutes: (func: () => any, minutes: number) => Promise<void>;
/**
* Delays the execution of a function for a specified number of hours.
* @param func - The function to be executed after the delay.
* @param hours - The number of hours to delay the execution.
* @returns A promise that resolves after the specified delay.
*/
export declare const Hours: (func: () => any, hours: number) => Promise<void>;
/**
* Delays the execution of a function for a specified number of days.
* @param func - The function to be executed after the delay.
* @param days - The number of days to delay the execution.
* @returns A promise that resolves after the specified delay.
*/
export declare const Days: (func: () => any, days: number) => Promise<void>;
/**
* Delays the execution of a function for a specified number of weeks.
* @param func - The function to be executed after the delay.
* @param weeks - The number of weeks to delay the execution.
* @returns A promise that resolves after the specified delay.
*/
export declare const Weeks: (func: () => any, weeks: number) => Promise<void>;
/**
* Delays the execution of a function for a specified number of months.
* @param func - The function to be executed after the delay.
* @param months - The number of months to delay the execution.
* @returns A promise that resolves after the specified delay.
*/
export declare const Months: (func: () => any, months: number) => Promise<void>;
/**
* Delays the execution of a function for a specified number of years.
* @param func - The function to be executed after the delay.
* @param years - The number of years to delay the execution.
* @returns A promise that resolves after the specified delay.
*/
export declare const Years: (func: () => any, years: number) => Promise<void>;
/**
* Delays the execution of a function for a specified number of decades.
* @param func - The function to be executed after the delay.
* @param decades - The number of decades to delay the execution.
* @returns A promise that resolves after the specified delay.
*/
export declare const Decades: (func: () => any, decades: number) => Promise<void>;
/**
* Delays the execution of a function for a specified number of centuries.
* @param func - The function to be executed after the delay.
* @param centuries - The number of centuries to delay the execution.
* @returns A promise that resolves after the specified delay.
*/
export declare const Centuries: (func: () => any, centuries: number) => Promise<void>;
/**
* Delays the execution of a function for a specified number of millenia.
* @param func - The function to be executed after the delay.
* @param millenia - The number of millenia to delay the execution.
* @returns A promise that resolves after the specified delay.
*/
export declare const Millenia: (func: () => any, millenia: number) => Promise<void>;