UNPKG

vuestic-ui

Version:
1 lines 501 B
{"version":3,"file":"combine-functions.mjs","sources":["../../../../src/utils/combine-functions.ts"],"sourcesContent":["/** Makes one function from multiple functions. Used to combine event listener callbacks */\nexport const combineFunctions = <A, T extends (...args: A[]) => any>(...list: T[]) => {\n return (...args: Parameters<T>) => list.forEach((fn) => fn(...args))\n}\n"],"names":[],"mappings":"AACa,MAAA,mBAAmB,IAAwC,SAAc;AAC7E,SAAA,IAAI,SAAwB,KAAK,QAAQ,CAAC,OAAO,GAAG,GAAG,IAAI,CAAC;AACrE;"}