data-source-D34wiQZj.mjs 674 B

123456789101112131415
  1. import { ConnectableObservable } from 'rxjs';
  2. class DataSource {
  3. }
  4. /** Checks whether an object is a data source. */
  5. function isDataSource(value) {
  6. // Check if the value is a DataSource by observing if it has a connect function. Cannot
  7. // be checked as an `instanceof DataSource` since people could create their own sources
  8. // that match the interface, but don't extend DataSource. We also can't use `isObservable`
  9. // here, because of some internal apps.
  10. return value && typeof value.connect === 'function' && !(value instanceof ConnectableObservable);
  11. }
  12. export { DataSource as D, isDataSource as i };
  13. //# sourceMappingURL=data-source-D34wiQZj.mjs.map