Skip to content

Commit

Permalink
fix(admob): mark BannerAd callbacks as optional
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorJohn authored and mikehardy committed May 12, 2021
1 parent 3b48240 commit 9a5a21f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/admob/lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1132,27 +1132,27 @@ export namespace FirebaseAdMobTypes {
/**
* When an ad has finished loading.
*/
onAdLoaded: () => void;
onAdLoaded?: () => void;

/**
* When an ad has failed to load. Callback contains an Error.
*/
onAdFailedToLoad: (error: Error) => void;
onAdFailedToLoad?: (error: Error) => void;

/**
* The ad is now visible to the user.
*/
onAdOpened: () => void;
onAdOpened?: () => void;

/**
* Called when the user is about to return to the app after tapping on an ad.
*/
onAdClosed: () => void;
onAdClosed?: () => void;

/**
* Called when the user has left the application (e.g. clicking an advert).
*/
onAdLeftApplication: () => void;
onAdLeftApplication?: () => void;
}

/**
Expand Down

1 comment on commit 9a5a21f

@vercel
Copy link

@vercel vercel bot commented on 9a5a21f May 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.