Skip to content

Commit

Permalink
Fixed docs for storage (#7010)
Browse files Browse the repository at this point in the history
  • Loading branch information
maneesht authored Feb 6, 2023
1 parent ac5cc6e commit 42fa2a1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions packages/firebase/compat/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8018,7 +8018,7 @@ declare namespace firebase.storage {
}

/**
* Error codes that can be attached to `StorageError`s.
* Error codes that can be attached to `StorageError` objects.
*/
export enum StorageErrorCode {
UNKNOWN = 'unknown',
Expand Down Expand Up @@ -8053,7 +8053,7 @@ declare namespace firebase.storage {
*/
export interface FirebaseStorageError extends FirebaseError {
/**
* Stores custom error data unque to StorageError.
* Stores custom error data unique to the `StorageError`.
*/
customData: {
serverResponse: string | null;
Expand All @@ -8062,7 +8062,7 @@ declare namespace firebase.storage {
get status(): number;
set status(status: number);
/**
* Compares a StorageErrorCode against this error's code, filtering out the prefix.
* Compares a `StorageErrorCode` against this error's code, filtering out the prefix.
*/
_codeEquals(code: StorageErrorCode): boolean;
/**
Expand Down
4 changes: 2 additions & 2 deletions packages/storage-types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export enum StorageErrorCode {

export interface FirebaseStorageError extends FirebaseError {
/**
* Stores custom error data unque to StorageError.
* Stores custom error data unique to the `StorageError`.
*/
customData: {
serverResponse: string | null;
Expand All @@ -136,7 +136,7 @@ export interface FirebaseStorageError extends FirebaseError {
get status(): number;
set status(status: number);
/**
* Compares a StorageErrorCode against this error's code, filtering out the prefix.
* Compares a `StorageErrorCode` against this error's code, filtering out the prefix.
*/
_codeEquals(code: StorageErrorCode): boolean;
/**
Expand Down
8 changes: 4 additions & 4 deletions packages/storage/src/implementation/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ import { CONFIG_STORAGE_BUCKET_KEY } from './constants';
export class StorageError extends FirebaseError {
private readonly _baseMessage: string;
/**
* Stores custom error data unque to StorageError.
* Stores custom error data unique to the `StorageError`.
*/
customData: { serverResponse: string | null } = { serverResponse: null };

/**
* @param code - A StorageErrorCode string to be prefixed with 'storage/' and
* @param code - A `StorageErrorCode` string to be prefixed with 'storage/' and
* added to the end of the message.
* @param message - Error message.
* @param status_ - Corresponding HTTP Status Code
Expand All @@ -56,7 +56,7 @@ export class StorageError extends FirebaseError {
}

/**
* Compares a StorageErrorCode against this error's code, filtering out the prefix.
* Compares a `StorageErrorCode` against this error's code, filtering out the prefix.
*/
_codeEquals(code: StorageErrorCode): boolean {
return prependCode(code) === this.code;
Expand All @@ -83,7 +83,7 @@ export const errors = {};

/**
* @public
* Error codes that can be attached to `StorageError`s.
* Error codes that can be attached to `StorageError` objects.
*/
export enum StorageErrorCode {
// Shared between all platforms
Expand Down

0 comments on commit 42fa2a1

Please sign in to comment.