Is it possible to reuse parameter types in typescript in the following manner:
interface Box {
create: (paramToReuse: (value: any) => void) => void
}
// Can paramToReuse be referenced as a type? For example:
let x: Box['create']['paramToReuse']
While it is achievable by first defining paramToReuse and then referencing it in Box's interface, is there a way to do it like demonstrated above?