Skip to content

Commit

Permalink
chore: fix ts issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 10, 2023
1 parent b04d602 commit 68a3429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/object-hash.ts
Expand Up @@ -154,7 +154,7 @@ function createHasher(options: HashOptions) {
if (options.unorderedObjects) {
keys = keys.sort();
}
let extraKeys = [];
let extraKeys = [] as readonly string[];
// Make sure to incorporate special properties, so Types with different prototypes will produce
// a different hash and objects derived from different functions (`new Foo`, `new Bar`) will
// produce different hashes. We never do this for native functions since some seem to break because of that.
Expand Down

0 comments on commit 68a3429

Please sign in to comment.