UNPKG

@vindev/particle

Version:

Angular Component Library using Tailwind

23 lines (22 loc) 852 B
import { Constructor } from './'; import { AtmDataSource } from '../utils/datasource'; import { Subscription, Subject, BehaviorSubject } from 'rxjs'; export declare function DataSourceMixin<T extends Constructor<{}>, I>(Base?: T): (abstract new (...args: any[]) => { _dataSource: AtmDataSource<I>; _renderChangeSubscription: Subscription | null; _dataBehavior: BehaviorSubject<I[]>; _onDestroy: Subject<void>; dataSource: AtmDataSource<I>; readonly data: I[]; loadSize: number; _loadSize: number; ngOnDestroy(): void; ngAfterContentChecked(): void; /** * During a data source switch there may be additional * operations that may need to be performed. * This abstract method is called proceeding all DS * switch logic. */ dataSourceSwitched(): void; }) & T;