In typescript is there a way to reuse parameter types as follows:
interface Box {
create: (paramToReuse: (value: any) => void) => void
}
// is there a way to reference paramToResuse as a type? e.g.
let x: Box['create']['paramToReuse']
This can be done the other way around: by first defining paramToReuse and then referencing it in Box's interface, but can it be done the way I've shown above?