You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
694 B
17 lines
694 B
4 months ago
|
import { Observable } from "zen-observable-ts";
|
||
|
// This simplified polyfill attempts to follow the ECMAScript Observable
|
||
|
// proposal (https://github.com/zenparsing/es-observable)
|
||
|
import "symbol-observable";
|
||
|
// The zen-observable package defines Observable.prototype[Symbol.observable]
|
||
|
// when Symbol is supported, but RxJS interop depends on also setting this fake
|
||
|
// '@@observable' string as a polyfill for Symbol.observable.
|
||
|
var prototype = Observable.prototype;
|
||
|
var fakeObsSymbol = "@@observable";
|
||
|
if (!prototype[fakeObsSymbol]) {
|
||
|
// @ts-expect-error
|
||
|
prototype[fakeObsSymbol] = function () {
|
||
|
return this;
|
||
|
};
|
||
|
}
|
||
|
export { Observable };
|
||
|
//# sourceMappingURL=Observable.js.map
|