Action - acadet/ludivine GitHub Wiki
Actions are shortcuts for typing lambda functions with no outcome. Actions are available from functions expecting no args to ones expecting four args.
interface Action0 {
() : void;
}
interface Action<T> {
(t : T) : void;
}
interface Action2<T, U> {
(t : T, u : U) : void;
}
interface Action3<T, U, V> {
(t : T, u : U, v : V) : void;
}
interface Action4<T, U, V, W> {
(t : T, u : U, v : V, w : W) : void;
}