@timescaledb/typeorm
Version:
This is the official TimescaleDB plugin for TypeORM.
7 lines (6 loc) • 306 B
TypeScript
import { Repository, ObjectLiteral } from 'typeorm';
import { TimeBucketOptions } from '@timescaledb/schemas';
export declare function getTimeBucket<T extends ObjectLiteral>(this: Repository<T>, options: TimeBucketOptions<T>): Promise<Array<{
interval: string;
[key: string]: number | string;
}>>;