export type Action = (data: T) => void; export type Func = (data: T) => TReturn; export type Func2 = (param1: T1, param2: T2) => TReturn; export type Predict = (data: T) => boolean; export type AsyncAction = (data: T) => Promise;