DialogOutputOf
Generic types: | T |
Utility type to extract the output type from a dialog component type that extends
.
See Also
Presentation
type DialogOutputOf =
T extends DialogIoTypes <any, infer Output > ? Output : never ;
Example usage
function handleOutput(output : DialogOutputOf <MyDialog>) { ... }