Skip to content

Commit 0156287

Browse files
committed
chore: update typings
1 parent f0ccb4a commit 0156287

File tree

17 files changed

+1205
-773
lines changed

17 files changed

+1205
-773
lines changed

packages/firebase-admob/typings/objc!GoogleMobileAds.d.ts

Lines changed: 59 additions & 315 deletions
Large diffs are not rendered by default.

packages/firebase-analytics/typings/objc!FirebaseAnalytics.d.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
21
declare class FIRAnalytics extends NSObject {
3-
42
static alloc(): FIRAnalytics; // inherited from NSObject
53

64
static appInstanceID(): string;
@@ -11,6 +9,8 @@ declare class FIRAnalytics extends NSObject {
119

1210
static handleUserActivity(userActivity: any): void;
1311

12+
static initiateOnDeviceConversionMeasurementWithEmailAddress(emailAddress: string): void;
13+
1414
static logEventWithNameParameters(name: string, parameters: NSDictionary<string, any>): void;
1515

1616
static new(): FIRAnalytics; // inherited from NSObject
@@ -37,3 +37,7 @@ declare var FIRConsentStatusGranted: string;
3737
declare var FIRConsentTypeAdStorage: string;
3838

3939
declare var FIRConsentTypeAnalyticsStorage: string;
40+
41+
declare var FirebaseAnalyticsVersionNumber: number;
42+
43+
declare var FirebaseAnalyticsVersionString: interop.Reference<number>;
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
interface FIRAppCheckInterop {
2+
getTokenForcingRefreshCompletion(forcingRefresh: boolean, handler: (p1: FIRAppCheckTokenResultInterop) => void): void;
3+
4+
notificationAppNameKey(): string;
5+
6+
notificationTokenKey(): string;
7+
8+
tokenDidChangeNotificationName(): string;
9+
}
10+
declare var FIRAppCheckInterop: {
11+
prototype: FIRAppCheckInterop;
12+
};
13+
14+
interface FIRAppCheckTokenResultInterop extends NSObjectProtocol {
15+
error: NSError;
16+
17+
token: string;
18+
}
19+
declare var FIRAppCheckTokenResultInterop: {
20+
prototype: FIRAppCheckTokenResultInterop;
21+
};
22+
23+
declare var FirebaseAppCheckInteropVersionNumber: number;
24+
25+
declare var FirebaseAppCheckInteropVersionString: interop.Reference<number>;
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
interface FIRAppCheckInterop {
2+
getTokenForcingRefreshCompletion(forcingRefresh: boolean, handler: (p1: FIRAppCheckTokenResultInterop) => void): void;
3+
4+
notificationAppNameKey(): string;
5+
6+
notificationTokenKey(): string;
7+
8+
tokenDidChangeNotificationName(): string;
9+
}
10+
declare var FIRAppCheckInterop: {
11+
prototype: FIRAppCheckInterop;
12+
};
13+
14+
interface FIRAppCheckTokenResultInterop extends NSObjectProtocol {
15+
error: NSError;
16+
17+
token: string;
18+
}
19+
declare var FIRAppCheckTokenResultInterop: {
20+
prototype: FIRAppCheckTokenResultInterop;
21+
};
22+
23+
declare var FirebaseAppCheckInteropVersionNumber: number;
24+
25+
declare var FirebaseAppCheckInteropVersionString: interop.Reference<number>;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
interface FIRAuthInterop {
2+
getTokenForcingRefreshWithCallback(forceRefresh: boolean, callback: (p1: string, p2: NSError) => void): void;
3+
4+
getUserID(): string;
5+
}
6+
declare var FIRAuthInterop: {
7+
prototype: FIRAuthInterop;
8+
};
9+
10+
declare var FirebaseAuthInteropVersionNumber: number;
11+
12+
declare var FirebaseAuthInteropVersionString: interop.Reference<number>;

packages/firebase-core/typings/objc!FirebaseCore.d.ts

Lines changed: 51 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
21
declare class FIRApp extends NSObject {
3-
42
static alloc(): FIRApp; // inherited from NSObject
53

64
static appNamed(name: string): FIRApp;
@@ -13,21 +11,42 @@ declare class FIRApp extends NSObject {
1311

1412
static defaultApp(): FIRApp;
1513

14+
static firebaseUserAgent(): string;
15+
16+
static isDefaultAppConfigured(): boolean;
17+
1618
static new(): FIRApp; // inherited from NSObject
1719

20+
static registerInternalLibraryWithName(library: typeof NSObject, name: string): void;
21+
22+
static registerInternalLibraryWithNameWithVersion(library: typeof NSObject, name: string, version: string): void;
23+
24+
static registerLibraryWithVersion(name: string, version: string): void;
25+
26+
static resetApps(): void;
27+
28+
container: FIRComponentContainer;
29+
1830
dataCollectionDefaultEnabled: boolean;
1931

32+
readonly heartbeatLogger: FIRHeartbeatLogger;
33+
34+
readonly isDefaultApp: boolean;
35+
2036
readonly name: string;
2137

2238
readonly options: FIROptions;
2339

2440
static readonly allApps: NSDictionary<string, FIRApp>;
2541

42+
constructor(o: { instanceWithName: string; options: FIROptions });
43+
2644
deleteApp(completion: (p1: boolean) => void): void;
45+
46+
initInstanceWithNameOptions(name: string, options: FIROptions): this;
2747
}
2848

2949
declare class FIRConfiguration extends NSObject {
30-
3150
static alloc(): FIRConfiguration; // inherited from NSObject
3251

3352
static new(): FIRConfiguration; // inherited from NSObject
@@ -40,7 +59,6 @@ declare class FIRConfiguration extends NSObject {
4059
declare function FIRFirebaseVersion(): string;
4160

4261
declare const enum FIRLoggerLevel {
43-
4462
Error = 3,
4563

4664
Warning = 4,
@@ -53,17 +71,20 @@ declare const enum FIRLoggerLevel {
5371

5472
Min = 3,
5573

56-
Max = 7
74+
Max = 7,
5775
}
5876

5977
declare class FIROptions extends NSObject implements NSCopying {
60-
6178
static alloc(): FIROptions; // inherited from NSObject
6279

6380
static defaultOptions(): FIROptions;
6481

82+
static defaultOptionsDictionary(): NSDictionary<any, any>;
83+
6584
static new(): FIROptions; // inherited from NSObject
6685

86+
static resetDefaultOptions(): void;
87+
6788
APIKey: string;
6889

6990
GCMSenderID: string;
@@ -80,20 +101,42 @@ declare class FIROptions extends NSObject implements NSCopying {
80101

81102
deepLinkURLScheme: string;
82103

104+
editingLocked: boolean;
105+
83106
googleAppID: string;
84107

108+
readonly isAnalyticsCollectionDeactivated: boolean;
109+
110+
readonly isAnalyticsCollectionEnabled: boolean;
111+
112+
readonly isAnalyticsCollectionExplicitlySet: boolean;
113+
114+
readonly isAnalyticsEnabled: boolean;
115+
116+
readonly isMeasurementEnabled: boolean;
117+
118+
readonly isSignInEnabled: boolean;
119+
120+
readonly libraryVersionID: string;
121+
85122
projectID: string;
86123

87124
storageBucket: string;
88125

89126
trackingID: string;
90127

91-
constructor(o: { contentsOfFile: string; });
128+
usingOptionsFromDefaultPlist: boolean;
92129

93-
constructor(o: { googleAppID: string; GCMSenderID: string; });
130+
constructor(o: { internalWithOptionsDictionary: NSDictionary<any, any> });
131+
132+
constructor(o: { contentsOfFile: string });
133+
134+
constructor(o: { googleAppID: string; GCMSenderID: string });
94135

95136
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
96137

138+
initInternalWithOptionsDictionary(serviceInfoDictionary: NSDictionary<any, any>): this;
139+
97140
initWithContentsOfFile(plistPath: string): this;
98141

99142
initWithGoogleAppIDGCMSenderID(googleAppID: string, GCMSenderID: string): this;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
declare var FirebaseCoreDiagnosticsVersionNumber: number;
2+
3+
declare var FirebaseCoreDiagnosticsVersionString: interop.Reference<number>;

0 commit comments

Comments
 (0)