type Tuple = [];
const tup: Tuple = [
((a, b) = {
// a: number; tup 2th item
// b: boolean; tup 3th item
}),
1,
false,
// more item enble.
];
First item is a function, parameter type are rest of the tulpe.
i try defined the Tuple, but code error "Type alias 'Tuple' circularly references itself. "
type Tuple = [(...args: any) => void, ...Parameters<Tuple[0]>];