Skip to content

Commit e937c54

Browse files
committed
Formattting
1 parent 42b3134 commit e937c54

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/ads/native-ad/NativeAd.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ import NativeGoogleMobileAdsNativeModule, {
3030
import { NativeAdRequestOptions } from '../../types';
3131
import { validateNativeAdRequestOptions } from '../../validateNativeAdRequestOptions';
3232

33-
type NativeAdListenerPayload<EventType extends NativeAdEventType> = EventType extends NativeAdEventType.PAID ? NativeAdPaidEventPayload : never;
33+
type NativeAdListenerPayload<EventType extends NativeAdEventType> =
34+
EventType extends NativeAdEventType.PAID ? NativeAdPaidEventPayload : never;
3435

3536
/**
3637
* A class for loading Native Ads.
@@ -94,7 +95,10 @@ export class NativeAd {
9495
this.eventEmitter.emit(type, data);
9596
}
9697

97-
addAdEventListener<EventType extends NativeAdEventType>(type: EventType, listener: (payload: NativeAdListenerPayload<EventType>) => void) {
98+
addAdEventListener<EventType extends NativeAdEventType>(
99+
type: EventType,
100+
listener: (payload: NativeAdListenerPayload<EventType>) => void)
101+
{
98102
if (!isOneOf(type, Object.values(NativeAdEventType))) {
99103
throw new Error(`NativeAd.addAdEventListener(*) 'type' expected a valid event type value.`);
100104
}

0 commit comments

Comments
 (0)