fix(build): tighten TypeScript build configuration and update tooling dependencies
This commit is contained in:
@@ -4,6 +4,7 @@ import { ClickhouseQueryBuilder } from './smartclickhouse.classes.querybuilder.j
|
||||
import type {
|
||||
IClickhouseTableOptions,
|
||||
IColumnInfo,
|
||||
IEngineConfig,
|
||||
TClickhouseColumnType,
|
||||
} from './smartclickhouse.types.js';
|
||||
import { detectClickhouseType, escapeClickhouseValue } from './smartclickhouse.types.js';
|
||||
@@ -23,7 +24,7 @@ export class ClickhouseTable<T extends Record<string, any>> {
|
||||
// ---- INSTANCE ----
|
||||
|
||||
public db: SmartClickHouseDb;
|
||||
public options: IClickhouseTableOptions<T>;
|
||||
public options: IClickhouseTableOptions<T> & { database: string; engine: IEngineConfig };
|
||||
public columns: IColumnInfo[] = [];
|
||||
private healingDeferred: plugins.smartpromise.Deferred<any> | null = null;
|
||||
|
||||
@@ -230,7 +231,7 @@ export class ClickhouseTable<T extends Record<string, any>> {
|
||||
};
|
||||
|
||||
intake.subscribe(
|
||||
async (doc) => {
|
||||
async (doc: Partial<T>) => {
|
||||
buffer.push(doc);
|
||||
if (buffer.length >= batchSize) {
|
||||
if (flushTimer) clearTimeout(flushTimer);
|
||||
|
||||
Reference in New Issue
Block a user