Skip to content

Commit 9a5a21f

Browse files
DoctorJohnmikehardy
authored andcommitted
fix(admob): mark BannerAd callbacks as optional
1 parent 3b48240 commit 9a5a21f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/admob/lib/index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,27 +1132,27 @@ export namespace FirebaseAdMobTypes {
11321132
/**
11331133
* When an ad has finished loading.
11341134
*/
1135-
onAdLoaded: () => void;
1135+
onAdLoaded?: () => void;
11361136

11371137
/**
11381138
* When an ad has failed to load. Callback contains an Error.
11391139
*/
1140-
onAdFailedToLoad: (error: Error) => void;
1140+
onAdFailedToLoad?: (error: Error) => void;
11411141

11421142
/**
11431143
* The ad is now visible to the user.
11441144
*/
1145-
onAdOpened: () => void;
1145+
onAdOpened?: () => void;
11461146

11471147
/**
11481148
* Called when the user is about to return to the app after tapping on an ad.
11491149
*/
1150-
onAdClosed: () => void;
1150+
onAdClosed?: () => void;
11511151

11521152
/**
11531153
* Called when the user has left the application (e.g. clicking an advert).
11541154
*/
1155-
onAdLeftApplication: () => void;
1155+
onAdLeftApplication?: () => void;
11561156
}
11571157

11581158
/**

0 commit comments

Comments
 (0)