mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 17:43:42 -05:00
0e71084600
[web] BS5 project tools GitOrigin-RevId: 3181c62985b6db4051292b484f53178a0736fa75
6 lines
190 B
TypeScript
6 lines
190 B
TypeScript
export function callFnsInSequence<
|
|
Args extends Array<any>,
|
|
Fn extends ((...args: Args) => void) | void,
|
|
>(...fns: Fn[]) {
|
|
return (...args: Args) => fns.forEach(fn => fn?.(...args))
|
|
}
|