mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-11 17:56:55 -05:00
6cc2db3cdd
Upgrade Prettier to v3 GitOrigin-RevId: 6f1338f196408f3edb4892d5220ad3665ff1a5bc
6 lines
175 B
TypeScript
6 lines
175 B
TypeScript
export function callFnsInSequence<
|
|
Args,
|
|
Fn extends ((...args: Args[]) => void) | void,
|
|
>(...fns: Fn[]) {
|
|
return (...args: Args[]) => fns.forEach(fn => fn?.(...args))
|
|
}
|