UNPKG

@veracity/vui

Version:

Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.

14 lines (13 loc) 627 B
import { AnyFunction } from "./types.js"; //#region src/utils/function.d.ts /** Calls each provided function with the same set of arguments. Useful for merging multiple callbacks. */ declare function callAll(...fns: (AnyFunction | undefined)[]): (...args: any[]) => void; declare function noop(): void; /** * If given value is a function, it's called with any additional arguments provided. * Otherwise, the provided value is returned directly. */ declare function runIfFn<T, U>(valueOrFn: T | ((...fnArgs: U[]) => T), ...args: U[]): T; //#endregion export { callAll, noop, runIfFn }; //# sourceMappingURL=function.d.ts.map