Illustration:
function a(...args: ???type of b() params???) {
b(...args)
}
The goal is for args
to match the type of parameters in function b
.
This idea is aimed at improving code readability and encapsulation. The function b
is imported, so I don't need to worry about its implementation when declaring function a
.