Skip to content

Commit f873ad4

Browse files
Fix Firestore compile (#5869)
1 parent 26b197f commit f873ad4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/util/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"build": "rollup -c",
2828
"build:deps": "lerna run --scope @firebase/util --include-dependencies build",
2929
"dev": "rollup -c -w",
30+
"prettier": "prettier --write 'src/**/*.ts' 'test/**/*.ts'",
3031
"test": "run-p lint test:all",
3132
"test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all",
3233
"test:all": "run-p test:browser test:node",
@@ -57,4 +58,4 @@
5758
],
5859
"reportDir": "./coverage/node"
5960
}
60-
}
61+
}

packages/util/src/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export interface ErrorData {
7373
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error#Custom_Error_Types
7474
export class FirebaseError extends Error {
7575
/** The custom name for all FirebaseErrors. */
76-
readonly name = ERROR_NAME;
76+
readonly name: string = ERROR_NAME;
7777

7878
constructor(
7979
/** The error code for this error. */

0 commit comments

Comments
 (0)