array-data-source.d.ts 572 B

12345678910111213141516
  1. /**
  2. * @license
  3. * Copyright Google LLC All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.io/license
  7. */
  8. import { Observable } from 'rxjs';
  9. import { DataSource } from './data-source';
  10. /** DataSource wrapper for a native array. */
  11. export declare class ArrayDataSource<T> extends DataSource<T> {
  12. private _data;
  13. constructor(_data: T[] | ReadonlyArray<T> | Observable<T[] | ReadonlyArray<T>>);
  14. connect(): Observable<T[] | ReadonlyArray<T>>;
  15. disconnect(): void;
  16. }