File tree 2 files changed +10
-9
lines changed 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
-
10
1
/** Symbol.observable or a string "@@observable". Used for interop */
11
2
export const observable = ( ( ) => typeof Symbol === 'function' && Symbol . observable || '@@observable' ) ( ) ;
Original file line number Diff line number Diff line change 1
1
import { Observable } from './Observable' ;
2
2
import { Subscription } from './Subscription' ;
3
3
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
+
4
14
/** OPERATOR INTERFACES */
5
15
6
16
export interface UnaryFunction < T , R > { ( source : T ) : R ; }
You can’t perform that action at this time.
0 commit comments