-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove allowInterop calls, fix types of callbacks, and use dart:js_interop #655
Conversation
…terop TokenClientConfig, CodeClientConfig, and revoke all take Dart functions only and therefore we should not use allowInterop. Fixes the type expected by revoke to take a JS value that is compatible with the callback. Also removes uses of dart:js in favor of dart:js_interop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll follow-up with a changelog, etc!
Thanks!
I went ahead and added a changelog to reduce the churn. Let me know if that works! |
I'm so confused...huh? |
Which part? I removed that changelog entry because it's wrong - this only partially migrates to |
Ah! okay... |
FYI @stereotype441 this has landed. |
TokenClientConfig, CodeClientConfig, and revoke all take Dart functions only and therefore we should not use allowInterop. Fixes the type expected by revoke to take a JS value that is compatible with the callback. Also removes uses of dart:js in favor of dart:js_interop.