Skip to content

Commit

Permalink
chore: typings
Browse files Browse the repository at this point in the history
  • Loading branch information
triniwiz committed Aug 2, 2022
1 parent 9cd3748 commit d63e7aa
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
2 changes: 0 additions & 2 deletions packages/firebase-admob/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,3 @@ export enum AdapterStatusState {
NOT_READY,
READY,
}

export type AdEventListener = (type: AdEventType | RewardedAdEventType, error?: Error, data?: any | IRewardedItem) => void;
4 changes: 2 additions & 2 deletions packages/firebase-admob/index.android.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Application, Utils } from '@nativescript/core';
import lazy from '@nativescript/core/utils/lazy';
import { firebase, FirebaseApp, FirebaseError } from '@nativescript/firebase-core';
import { IAdmob, RequestConfiguration, AdShowOptions, IInterstitialAd, RequestOptions, IRewardedAd, IRewardedInterstitialAd, IRewardedItem, ServerSideVerificationOptions, AdapterStatus } from '.';
import { AdEventListener, AdEventType, BannerAdBase, RewardedAdEventType, MaxAdContentRating, unitIdProperty, BannerAdSizeBase, sizeProperty } from './common';
import { IAdmob, AdEventListener, RequestConfiguration, AdShowOptions, IInterstitialAd, RequestOptions, IRewardedAd, IRewardedInterstitialAd, IRewardedItem, ServerSideVerificationOptions, AdapterStatus } from '.';
import { AdEventType, BannerAdBase, RewardedAdEventType, MaxAdContentRating, unitIdProperty, BannerAdSizeBase, sizeProperty } from './common';

export { MaxAdContentRating, AdEventType };

Expand Down
6 changes: 4 additions & 2 deletions packages/firebase-admob/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { Application } from '@nativescript/core';

import { FirebaseApp } from '@nativescript/firebase-core';
import { IAdmob, AdEventListener, IInterstitialAd, IRewardedAd, AdEventType, BannerAdBase, IRewardedInterstitialAd, RewardedAdEventType, MaxAdContentRating, ServerSideVerificationOptions } from './common';
import { IAdmob, IInterstitialAd, IRewardedAd, BannerAdBase, IRewardedInterstitialAd, RewardedAdEventType, MaxAdContentRating, ServerSideVerificationOptions } from './common';

export { MaxAdContentRating, AdEventType, RewardedAdEventType };
export { MaxAdContentRating, RewardedAdEventType };

export type AdEventListener = (type: AdEventType | RewardedAdEventType, error?: Error, data?: any | IRewardedItem) => void;

export * from './adsconsent';
export * from './nativead';
Expand Down
4 changes: 2 additions & 2 deletions packages/firebase-admob/index.ios.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Utils } from '@nativescript/core';
import { firebase, FirebaseApp, FirebaseError } from '@nativescript/firebase-core';
import { IAdmob, RequestConfiguration, AdShowOptions, IInterstitialAd, RequestOptions, IRewardedAd, ServerSideVerificationOptions, IRewardedInterstitialAd, IRewardedItem, AdapterStatus } from '.';
import { MaxAdContentRating, AdEventListener, AdEventType, BannerAdBase, RewardedAdEventType, unitIdProperty, BannerAdSizeBase, sizeProperty } from './common';
import { IAdmob, AdEventListener, RequestConfiguration, AdShowOptions, IInterstitialAd, RequestOptions, IRewardedAd, ServerSideVerificationOptions, IRewardedInterstitialAd, IRewardedItem, AdapterStatus } from '.';
import { MaxAdContentRating, AdEventType, BannerAdBase, RewardedAdEventType, unitIdProperty, BannerAdSizeBase, sizeProperty } from './common';
import { topViewController, toSerializeRequestOptions } from './utils';

export { MaxAdContentRating, AdEventType };
Expand Down
4 changes: 2 additions & 2 deletions packages/firebase-admob/nativead/index.android.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AddChildFromBuilder, Application, ImageSource, View } from '@nativescript/core';
import { FirebaseError } from '@nativescript/firebase-core';
import { ManagerRequestOptions, RequestOptions } from '..';
import { AdEventListener, AdEventType } from '../common';
import { ManagerRequestOptions, RequestOptions, AdEventListener } from '..';
import { AdEventType } from '../common';
import { NativeAdEventListener, NativeAdViewBase, MediaViewBase, mediaContentProperty, stretchProperty } from './common';
import { IMediaContent, IMuteThisAdReason, INativeAd, INativeAdImage, IVideoController, NativeAdOptions, UnconfirmedClickListener, VideoStatus, AdChoicesPlacement, MediaAspectRatio, INativeAdLoader, NativeAdEventType } from '.';

Expand Down
4 changes: 2 additions & 2 deletions packages/firebase-admob/nativead/index.ios.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { AddChildFromBuilder, ImageSource, Utils, View } from '@nativescript/core';
import { FirebaseError } from '@nativescript/firebase-core';
import { topViewController, toSerializeManagerRequestOptions, toSerializeRequestOptions } from '../utils';
import { AdEventListener, AdEventType } from '../common';
import { ManagerRequestOptions, RequestOptions } from '..';
import { AdEventType } from '../common';
import { ManagerRequestOptions, RequestOptions, AdEventListener } from '..';
import { NativeAdEventListener, NativeAdViewBase, MediaViewBase, mediaContentProperty, stretchProperty } from './common';
import { IMediaContent, IMuteThisAdReason, INativeAd, INativeAdImage, IVideoController, NativeAdOptions, UnconfirmedClickListener, VideoStatus, AdChoicesPlacement, MediaAspectRatio, INativeAdLoader, NativeAdEventType } from '.';

Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-admob/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ManagerRequestOptions, RequestOptions } from './common';
import { ManagerRequestOptions, RequestOptions } from '.';

export function toSerializeRequestOptions(requestOptions?: RequestOptions, isManager: boolean = false) {
if (global.isAndroid) {
Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-firestore/index.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { GetOptions, DocumentChangeType } from './common';

export { GetOptions, DocumentChangeType };

import { ICollectionReference, IDocumentReference, IFieldPath, IFieldValue, IGeoPoint, IQuery, ITimestamp, IWriteBatch, SetOptions, DocumentData, IDocumentSnapshot, IQuerySnapshot, SnapshotListenOptions, ISnapshotMetadata, IDocumentChange, IQueryDocumentSnapshot, ITransaction, ISettings, IFirestore, IBytes } from '.';
import { WhereFilterOp, ICollectionReference, IDocumentReference, IFieldPath, IFieldValue, IGeoPoint, IQuery, ITimestamp, IWriteBatch, SetOptions, DocumentData, IDocumentSnapshot, IQuerySnapshot, SnapshotListenOptions, ISnapshotMetadata, IDocumentChange, IQueryDocumentSnapshot, ITransaction, ISettings, IFirestore, IBytes, DocumentFieldType } from '.';

import { firebase, FirebaseApp, FirebaseError } from '@nativescript/firebase-core';

Expand Down
2 changes: 1 addition & 1 deletion packages/firebase-firestore/index.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { GetOptions, DocumentChangeType } from './common';

export { GetOptions, DocumentChangeType };

import { ICollectionReference, IDocumentReference, IFieldPath, IFieldValue, IGeoPoint, IQuery, ITimestamp, IWriteBatch, SetOptions, DocumentData, IDocumentSnapshot, IQuerySnapshot, SnapshotListenOptions, ISnapshotMetadata, IDocumentChange, IQueryDocumentSnapshot, ITransaction, ISettings, IFirestore, IBytes } from '.';
import { WhereFilterOp, ICollectionReference, IDocumentReference, IFieldPath, IFieldValue, IGeoPoint, IQuery, ITimestamp, IWriteBatch, SetOptions, DocumentData, IDocumentSnapshot, IQuerySnapshot, SnapshotListenOptions, ISnapshotMetadata, IDocumentChange, IQueryDocumentSnapshot, ITransaction, ISettings, IFirestore, IBytes, DocumentFieldType } from '.';

const main_queue = dispatch_get_current_queue();

Expand Down

0 comments on commit d63e7aa

Please sign in to comment.