Angular’s matDialog.open()
is generic and can take three arguments. matDialog.open<Type, Data, Return>
.
My dialog has custom types like so MyDialogType<T>
, MyDialogData<T>
and MyDialogReturn<T>
.
Writing this out in full results in something like this.
this.matDialog.open<MyDialogType<Boat>, MyDialogData<Boat>, MyDialogReturn<Boat>>()
So I am curious if it’s possible to have just one type for all those. I.e.
this.matDialog.open<OneType<Boat>>()
Thank you.