Skip to content
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

Fix onTokenRefresh typing #3460

Closed
Prev Previous commit
Next Next commit
Fix Typescript validation
  • Loading branch information
OrRosenblatt committed Apr 13, 2020
commit 39af2347f075d649b1223034cdba04b8bec14cc3
2 changes: 1 addition & 1 deletion packages/messaging/lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ export namespace FirebaseMessagingTypes {
*
* @param listener Called with a FCM token when the token is refreshed.
*/
onTokenRefresh(listener: (token: String & { token: string}) => any) => () => void;
onTokenRefresh(listener: (token: String & { token: string }) => any): () => void;

/**
* On iOS, messaging permission must be requested by the current application before messages can
Expand Down