Skip to content

Commit bee8c56

Browse files
committed
fix(installations, web): More explicit interop types
1 parent be12eed commit bee8c56

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

packages/firebase_app_installations/firebase_app_installations_web/lib/src/interop/installations_interop.dart

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,15 @@ external JSPromise /* void */ deleteInstallations(
3030
@JS()
3131
@staticInterop
3232
external JSFunction onIdChange(
33-
InstallationsJsImpl installations, JSFunction forceRefresh);
33+
JSObject installations, JSFunction forceRefresh);
3434

35-
@JS('Installations')
36-
@staticInterop
37-
abstract class InstallationsJsImpl {}
38-
39-
extension InstallationsJsImplExtension on InstallationsJsImpl {
35+
extension type InstallationsJsImplExtension._(JSObject _) implements JSObject {
4036
external AppJsImpl get app;
4137
}
38+
39+
extension type InstallationsJsImpl._(JSObject _) implements JSObject {
40+
external JSPromise<JSString> getId();
41+
external JSPromise<JSString> getToken([JSBoolean? forceRefresh]);
42+
external JSPromise deleteInstallations();
43+
external JSFunction onIdChange(JSFunction forceRefresh);
44+
}

0 commit comments

Comments
 (0)