Skip to content

Commit c512a50

Browse files
committed
style(lint): de-lint all jsdoc/typedoc comments
1 parent 8222a96 commit c512a50

33 files changed

Lines changed: 276 additions & 192 deletions

File tree

packages/ai/lib/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export {
4949

5050
/**
5151
* Returns the default {@link AI} instance that is associated with the provided
52-
* {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new instance with the
52+
* {@link @firebase/app!FirebaseApp}. If no instance exists, initializes a new instance with the
5353
* default settings.
5454
*
5555
* @example
@@ -69,9 +69,9 @@ export {
6969
* const ai = getAI(app, { backend: new VertexAIBackend() });
7070
* ```
7171
*
72-
* @param app - The {@link @firebase/app#FirebaseApp} to use.
72+
* @param app - The {@link @firebase/app!FirebaseApp} to use.
7373
* @param options - {@link AIOptions} that configure the AI instance.
74-
* @returns The default {@link AI} instance for the given {@link @firebase/app#FirebaseApp}.
74+
* @returns The default {@link AI} instance for the given {@link @firebase/app!FirebaseApp}.
7575
*
7676
* @public
7777
*/

packages/ai/lib/public-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export type BackendType = (typeof BackendType)[keyof typeof BackendType];
8787
*/
8888
export interface AI {
8989
/**
90-
* The {@link @firebase/app#FirebaseApp} this {@link AI} instance is associated with.
90+
* The {@link @firebase/app!FirebaseApp} this {@link AI} instance is associated with.
9191
*/
9292
app: ReactNativeFirebase.FirebaseApp;
9393
appCheck?: FirebaseAppCheckTypes.Module | null;

packages/ai/lib/types/imagen/requests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export interface ImagenGenerationConfig {
7373
numberOfImages?: number;
7474
/**
7575
* The aspect ratio of the generated images. The default value is square 1:1.
76-
* Supported aspect ratios depend on the Imagen model, see {@link (ImagenAspectRatio:type)}
76+
* Supported aspect ratios depend on the Imagen model, see {@link ImagenAspectRatio}
7777
* for more details.
7878
*/
7979
aspectRatio?: ImagenAspectRatio;

packages/ai/lib/types/imagen/responses.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ export interface ImagenGenerationResponse<T extends ImagenInlineImage | ImagenGC
7171
* The reason that images were filtered out. This property will only be defined if one
7272
* or more images were filtered.
7373
*
74-
* Images may be filtered out due to the {@link (ImagenSafetyFilterLevel:type)},
75-
* {@link (ImagenPersonFilterLevel:type)}, or filtering included in the model.
74+
* Images may be filtered out due to the {@link ImagenSafetyFilterLevel},
75+
* {@link ImagenPersonFilterLevel}, or filtering included in the model.
7676
* The filter levels may be adjusted in your {@link ImagenSafetySettings}.
7777
*
7878
* See the {@link https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen | Responsible AI and usage guidelines for Imagen}

packages/ai/typedoc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"$schema": "https://typedoc.org/schema.json",
33
"entryPoints": ["lib/index.ts"],
4-
"tsconfig": "tsconfig.json"
4+
"tsconfig": "tsconfig.json",
5+
"intentionallyNotExported": ["ApiSettings", "WebSocketHandler"]
56
}

packages/analytics/lib/modular.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -948,10 +948,10 @@ export function initiateOnDeviceConversionMeasurementWithEmailAddress(
948948
* start privacy-sensitive on-device conversion management.
949949
* This is iOS-only.
950950
* This is a no-op if you do not include '$RNFirebaseAnalyticsGoogleAppMeasurementOnDeviceConversion = true' in your Podfile
951+
* {@link https://firebase.google.com/docs/tutorials/ads-ios-on-device-measurement/step-3#use-hashed-credentials}
951952
*
952953
* @param analytics Analytics instance.
953954
* @param hashedEmailAddress sha256-hashed of normalized email address, properly formatted complete with domain name e.g, 'user@example.com'
954-
* @link https://firebase.google.com/docs/tutorials/ads-ios-on-device-measurement/step-3#use-hashed-credentials
955955
*/
956956
export function initiateOnDeviceConversionMeasurementWithHashedEmailAddress(
957957
analytics: Analytics,
@@ -988,10 +988,10 @@ export function initiateOnDeviceConversionMeasurementWithPhoneNumber(
988988
* start privacy-sensitive on-device conversion management.
989989
* This is iOS-only.
990990
* This is a no-op if you do not include '$RNFirebaseAnalyticsGoogleAppMeasurementOnDeviceConversion = true' in your Podfile
991+
* {@link https://firebase.google.com/docs/tutorials/ads-ios-on-device-measurement/step-3#use-hashed-credentials}
991992
*
992993
* @param analytics Analytics instance.
993994
* @param hashedPhoneNumber sha256-hashed of normalized phone number in E.164 format - that is a leading + sign, then up to 15 digits, no dashes or spaces.
994-
* @link https://firebase.google.com/docs/tutorials/ads-ios-on-device-measurement/step-3#use-hashed-credentials
995995
*/
996996
export function initiateOnDeviceConversionMeasurementWithHashedPhoneNumber(
997997
analytics: Analytics,
@@ -1031,9 +1031,10 @@ export function setConsent(analytics: Analytics, consentSettings: ConsentSetting
10311031
/**
10321032
* Configures Firebase Analytics to use custom gtag or dataLayer names.
10331033
* Intended to be used if gtag.js script has been installed on this page independently of Firebase Analytics, and is using non-default names for either the gtag function or for dataLayer. Must be called before calling `getAnalytics()` or it won't have any effect. Web only.
1034-
* @param {SettingsOptions} options - See SettingsOptions.
1034+
* @param {SettingsOptions} _options - See SettingsOptions - currently unused.
10351035
* @returns {void}
10361036
*/
1037+
10371038
export function settings(_options: SettingsOptions): void {
10381039
// Returns nothing until Web implemented.
10391040
}

packages/analytics/typedoc.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"$schema": "https://typedoc.org/schema.json",
3+
"entryPoints": ["lib/modular.ts", "lib/types/analytics.ts"],
4+
"tsconfig": "tsconfig.json",
5+
"intentionallyNotExported": [
6+
"_AddPaymentInfoEventParameters",
7+
"_AddShippingInfoEventParameters",
8+
"_AddShippingInfoParameters",
9+
"_AddToCartEventParameters",
10+
"_AddToWishlistEventParameters",
11+
"_AnalyticsCallOptions",
12+
"_AnalyticsSettings",
13+
"_BeginCheckoutEventParameters",
14+
"_CampaignDetailsEventParameters",
15+
"_ConsentSettings",
16+
"_EarnVirtualCurrencyEventParameters",
17+
"_EventParams",
18+
"_GenerateLeadEventParameters",
19+
"_GtagConfigParams",
20+
"_Item",
21+
"_JoinGroupEventParameters",
22+
"_LevelEndEventParameters",
23+
"_LevelStartEventParameters",
24+
"_LevelUpEventParameters",
25+
"_LoginEventParameters",
26+
"_PostScoreEventParameters",
27+
"_PurchaseEventParameters",
28+
"_RefundEventParameters",
29+
"_RemoveFromCartEventParameters",
30+
"_ScreenViewParameters",
31+
"_SearchEventParameters",
32+
"_SelectContentEventParameters",
33+
"_SelectItemEventParameters",
34+
"_SelectPromotionEventParameters",
35+
"_SetCheckoutOptionEventParameters",
36+
"_SettingsOptions",
37+
"_ShareEventParameters",
38+
"_SignUpEventParameters",
39+
"_SpendVirtualCurrencyEventParameters",
40+
"_Statics",
41+
"_UnlockAchievementEventParameters",
42+
"_ViewCartEventParameters",
43+
"_ViewItemEventParameters",
44+
"_ViewItemListEventParameters",
45+
"_ViewPromotionEventParameters",
46+
"_ViewSearchResultsParameters"
47+
]
48+
}

packages/app-check/typedoc.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"$schema": "https://typedoc.org/schema.json",
3+
"entryPoints": ["lib/modular.ts", "lib/types/appcheck.ts"],
4+
"tsconfig": "tsconfig.json",
5+
"intentionallyNotExported": [
6+
"_AppCheck",
7+
"_AppCheckListenerResult",
8+
"_AppCheckOptions",
9+
"_AppCheckProvider",
10+
"_AppCheckStatics",
11+
"_AppCheckToken",
12+
"_AppCheckTokenResult",
13+
"_CustomProviderOptions"
14+
]
15+
}
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
22
"$schema": "https://typedoc.org/schema.json",
3-
"entryPoints": ["lib/index.d.ts"]
3+
"entryPoints": ["lib/modular/index.d.ts"],
4+
"intentionallyNotExported": [
5+
"FirebaseAppDistributionTypes.Module",
6+
"FirebaseAppDistributionTypes.AppDistributionRelease"
7+
]
48
}

packages/app/lib/types/app.ts

Lines changed: 17 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
/**
1919
* Core React Native Firebase package types.
20-
*
21-
* @firebase app
2220
*/
2321
// eslint-disable-next-line @typescript-eslint/no-namespace
2422
export namespace ReactNativeFirebase {
@@ -238,8 +236,6 @@ export namespace ReactNativeFirebase {
238236
* level is set to a higher (more verbose) setting.
239237
* Note that iOS is missing firebase-js-sdk log levels 'verbose' and 'silent'.
240238
* 'verbose' if used will map to 'debug', 'silent' has no valid mapping and will return an error if used.
241-
*
242-
* @ios
243239
*/
244240
setLogLevel(logLevel: LogLevelString): void;
245241

@@ -333,7 +329,7 @@ export namespace ReactNativeFirebase {
333329
}
334330

335331
/**
336-
* @firebase utils
332+
* A namespace used exlusively for native-related utilities
337333
*/
338334
// eslint-disable-next-line @typescript-eslint/no-namespace
339335
export namespace Utils {
@@ -350,13 +346,11 @@ export namespace Utils {
350346
*/
351347
export interface FilePath {
352348
/**
353-
* Returns an absolute path to the applications main bundle.
349+
* Returns an absolute path to the applications main bundle - iOS only
354350
*
355351
* ```js
356352
* firebase.utils.FilePath.MAIN_BUNDLE;
357353
* ```
358-
*
359-
* @ios iOS only
360354
*/
361355
MAIN_BUNDLE: string;
362356

@@ -410,7 +404,7 @@ export namespace Utils {
410404
LIBRARY_DIRECTORY: string;
411405

412406
/**
413-
* Returns an absolute path to the directory on the primary shared/external storage device.
407+
* Returns null on iOS, or on Android an absolute path to the directory on the primary shared/external storage device.
414408
*
415409
* Here your application can place persistent files it owns. These files are internal to the application, and not typically visible to the user as media.
416410
*
@@ -419,8 +413,6 @@ export namespace Utils {
419413
* ```js
420414
* firebase.utils.FilePath.EXTERNAL_DIRECTORY;
421415
* ```
422-
*
423-
* @android Android only - iOS returns null
424416
*/
425417
EXTERNAL_DIRECTORY: string | null;
426418

@@ -429,14 +421,12 @@ export namespace Utils {
429421
*
430422
* Traditionally this is an SD card, but it may also be implemented as built-in storage on a device.
431423
*
432-
* Returns null if no external storage directory found, e.g. removable media has been ejected by the user.
424+
* Returns null on iOS or if on android no external storage directory found, e.g. removable media has been ejected by the user.
433425
* Requires special permission granted by Play Store review team on Android, is unlikely to be a valid path.
434426
*
435427
* ```js
436428
* firebase.utils.FilePath.EXTERNAL_STORAGE_DIRECTORY;
437429
* ```
438-
*
439-
* @android Android only - iOS returns null
440430
*/
441431
EXTERNAL_STORAGE_DIRECTORY: string | null;
442432

@@ -497,57 +487,52 @@ export namespace Utils {
497487

498488
export interface PlayServicesAvailability {
499489
/**
500-
* Returns a numeric status code. Please refer to Android documentation
490+
* Returns a numeric status code. Always 0 on iOS, For Android please refer to Android documentation
501491
* for further information:
502492
* https://developers.google.com/android/reference/com/google/android/gms/common/ConnectionResult
503493
*
504494
* ```js
505495
* firebase.utils().playServicesAvailability.status;
506496
* ```
507-
*
508-
* @android Android only - iOS returns 0
509497
*/
510498
status: PlayServicesAvailabilityStatusCodes;
511499

512500
/**
513-
* Returns a boolean indicating whether Play Store is available on the device
501+
* Returns a boolean indicating whether Play Store is available on the device, always true on iOS
514502
*
515503
* ```js
516504
* firebase.utils().playServicesAvailability.isAvailable;
517505
* ```
518-
*
519-
* @android Android only - iOS returns true
520506
*/
521507
isAvailable: boolean;
522508

523509
/**
524510
* If Play Services is not available on the device, hasResolution indicates
525-
* whether it is possible to do something about it (e.g. install Play Services).
511+
* whether it is possible to do something about it (e.g. install Play Services),
512+
* always returns undefined on iOS
526513
*
527514
* ```js
528515
* firebase.utils().playServicesAvailability.hasResolution;
529516
* ```
530-
* @android Android only - iOS returns undefined
531517
*/
532518
hasResolution: boolean | undefined;
533519

534520
/**
535-
* If an error was received, this indicates whether the error is resolvable
521+
* If an error was received, this indicates whether the error is resolvable,
522+
* always returns undefined on iOS
536523
*
537524
* ```js
538525
* firebase.utils().playServicesAvailability.isUserResolvableError;
539526
* ```
540-
* @android Android only - iOS returns undefined
541527
*/
542528
isUserResolvableError: boolean | undefined;
543529

544530
/**
545-
* A human readable error string
531+
* A human readable error string, always undefined on iOS
546532
*
547533
* ```js
548534
* firebase.utils().playServicesAvailability.error;
549535
* ```
550-
* @android Android only - iOS returns undefined
551536
*/
552537
error: string | undefined;
553538
}
@@ -567,76 +552,65 @@ export namespace Utils {
567552
*/
568553
export abstract class Module extends FirebaseModule {
569554
/**
570-
* Returns true if this app is running inside a Firebase Test Lab environment.
555+
* Returns true if this app is running inside a Firebase Test Lab environment, always false on iOS
571556
*
572557
* #### Example
573558
*
574559
* ```js
575560
* const isRunningInTestLab = await firebase.utils().isRunningInTestLab;
576561
* ```
577-
* @android Android only - iOS returns false
578562
*/
579563
abstract isRunningInTestLab: boolean;
580564
/**
581-
* Returns PlayServicesAvailability properties
565+
* Returns PlayServicesAvailability properties, always `{ isAvailable: true, status: 0 }` on iOS
582566
*
583567
* #### Example
584568
*
585569
* ```js
586570
* const PlayServicesAvailability = await firebase.utils().playServicesAvailability;
587571
* ```
588-
*
589-
* @android Android only - iOS always returns { isAvailable: true, status: 0 }
590572
*/
591573
abstract playServicesAvailability: PlayServicesAvailability;
592574

593575
/**
594-
* Returns PlayServicesAvailability properties
576+
* Returns PlayServicesAvailability properties, always `{ isAvailable: true, status: 0 }` on iOS
595577
*
596578
* #### Example
597579
*
598580
* ```js
599581
* const PlayServicesAvailability = await firebase.utils().getPlayServicesStatus();
600582
* ```
601-
*
602-
* @android Android only - iOS always returns { isAvailable: true, status: 0 }
603583
*/
604584
abstract getPlayServicesStatus(): Promise<PlayServicesAvailability>;
605585

606586
/**
607-
* A prompt appears on the device to ask the user to update play services
587+
* A prompt appears on the device to ask the user to update play services, returns undefined on iOS
608588
*
609589
* #### Example
610590
*
611591
* ```js
612592
* await firebase.utils().promptForPlayServices();
613593
* ```
614-
*
615-
* @android Android only - iOS returns undefined
616594
*/
617595
abstract promptForPlayServices(): Promise<void>;
618596
/**
619-
* Attempts to make Google Play services available on this device
597+
* Attempts to make Google Play services available on this device, returns undefined on iOS
620598
*
621599
* #### Example
622600
*
623601
* ```js
624602
* await firebase.utils().makePlayServicesAvailable();
625603
* ```
626-
*
627-
* @android Android only - iOS returns undefined
628604
*/
629605
abstract makePlayServicesAvailable(): Promise<void>;
630606
/**
631-
* Resolves an error by starting any intents requiring user interaction.
607+
* Resolves an error by starting any intents requiring user interaction, returns undefined on iOS
632608
*
633609
* #### Example
634610
*
635611
* ```js
636612
* await firebase.utils().resolutionForPlayServices();
637613
* ```
638-
*
639-
* @android Android only - iOS returns undefined
640614
*/
641615
abstract resolutionForPlayServices(): Promise<void>;
642616
}

0 commit comments

Comments
 (0)