Add typescript type variables to $q.dialog #12504
Unanswered
lugrinder
asked this question in
Ideas / Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Current typescript interface of
$q.dialog()declarescomponentProps?: anyandonOk(payload?: any).When used to create a custom dialog, there is no type checking.
Add two type variables to the function signature:
Here is a patch that makes this possible:
Beta Was this translation helpful? Give feedback.
All reactions