File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1- /** Symbol.observable addition */
2- /* Note: This will add Symbol.observable globally for all TypeScript users,
3- however, we are no longer polyfilling Symbol.observable */
4- declare global {
5- interface SymbolConstructor {
6- readonly observable : symbol ;
7- }
8- }
9-
101/** Symbol.observable or a string "@@observable". Used for interop */
112export const observable = ( ( ) => typeof Symbol === 'function' && Symbol . observable || '@@observable' ) ( ) ;
Original file line number Diff line number Diff line change 11import { Observable } from './Observable' ;
22import { Subscription } from './Subscription' ;
33
4+ /**
5+ * Note: This will add Symbol.observable globally for all TypeScript users,
6+ * however, we are no longer polyfilling Symbol.observable
7+ */
8+ declare global {
9+ interface SymbolConstructor {
10+ readonly observable : symbol ;
11+ }
12+ }
13+
414/** OPERATOR INTERFACES */
515
616export interface UnaryFunction < T , R > { ( source : T ) : R ; }
You can’t perform that action at this time.
0 commit comments