VV
Size: a a a
VV
MO
M
type A<T> = (b: T) => void;
type Func = <T>(a: A<T>, b: T) => void;
const useRequest: Func = (a, b) => {
a(b);
}
useRequest((y: number) => {
console.log(y)
}, 10)
VV
MO
MO
M
MO
type A<T> = (...b: T[]) => void;
type Func = <T>(a: A<T>, ...b: T[]) => void;
const useRequest: Func = (a, ...b) => {
a(...b);
}
useRequest((y:number, w:string) => {
console.log(y, w)
}, 11, "sdfds")
M
MO
M
MO
MO
VV
DK
DK
VV
RV
VV