Skip to content

Commit

Permalink
fix(TypeScript): Symbol.observable is now unique symbol.
Browse files Browse the repository at this point in the history
Resolves #41

BREAKING CHANGE: Older versions of `@types/node` will clash with this, because `@types/node` incorrectly defined `Symbol.observable` has `symbol` and not `unique symbol`. Update to `@types/node@14.14.6` or higher.
  • Loading branch information
benlesh committed Nov 2, 2020
1 parent fe4301f commit 2ef1476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ export default observableSymbol;

declare global {
export interface SymbolConstructor {
readonly observable: symbol;
readonly observable: unique symbol;
}
}

0 comments on commit 2ef1476

Please sign in to comment.