matrix-utils.d.ts 322 B

123456789
  1. import { TimeUnit } from 'ngx-bootstrap/chronos';
  2. export declare type CreateMatrixCb<T> = (date: Date) => T;
  3. export interface MatrixOptions {
  4. height: number;
  5. width: number;
  6. initialDate: Date;
  7. shift: TimeUnit;
  8. }
  9. export declare function createMatrix<T>(options: MatrixOptions, fn: CreateMatrixCb<T>): T[][];