UNPKG

rsuite

Version:

A suite of react components

16 lines (15 loc) 475 B
/** * * Safe chained function * * Will only create a new function if needed, * otherwise will pass back existing functions or null. * * Largely copied directly from: * https://github.com/react-bootstrap/react-bootstrap/blob/master/src/utils/createChainedFunction.js * * @param {function} functions to chain * @returns {function|undefined} */ export declare function createChainedFunction<T = any>(...funcs: (T | null)[]): T; export default createChainedFunction;