UNPKG

@stryke/helpers

Version:

A package containing miscellaneous helper functions that are used across many different Storm Software projects.

19 lines (18 loc) 670 B
/** * A no op, or no-op, function for no operation * * @remarks Please see {@link https://dev.to/praneshpsg239/noop-in-javascript-478h | this article} for more information. * * @param _params - An optional parameter passed to the function. It can be anything (but is not used in any way) */ export declare const noop: (_params?: unknown) => void; /** * An asynchronous no-operation function that does nothing. * This can be used as a placeholder or default function. * * @example * asyncNoop(); // Does nothing * * @returns This function returns a Promise that resolves to undefined. */ export declare function asyncNoop(_params?: unknown): Promise<void>;