@period-year-norway/ngx-bootstrap
Version:
10 lines (9 loc) • 334 B
TypeScript
import { TimeUnit } from '@period-year-norway/ngx-bootstrap/chronos';
export type CreateMatrixCb<T> = (date: Date) => T;
export interface MatrixOptions {
height: number;
width: number;
initialDate: Date;
shift: TimeUnit;
}
export declare function createMatrix<T>(options: MatrixOptions, fn: CreateMatrixCb<T>): T[][];