From 8ea32ce992bb6fc7fc4993f4860b63128112c759 Mon Sep 17 00:00:00 2001 From: Jeff Raymakers Date: Tue, 10 Dec 2024 14:34:12 -0800 Subject: [PATCH] add explicit types to avoid literal bigint types in d.ts files --- api/src/DuckDBType.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/api/src/DuckDBType.ts b/api/src/DuckDBType.ts index d7fe4ea0..e04fc2ee 100644 --- a/api/src/DuckDBType.ts +++ b/api/src/DuckDBType.ts @@ -67,8 +67,8 @@ export class DuckDBBigIntType extends BaseDuckDBType { public static create(alias?: string): DuckDBBigIntType { return alias ? new DuckDBBigIntType(alias) : DuckDBBigIntType.instance; } - public static readonly Max = 2n ** 63n - 1n; - public static readonly Min = -(2n ** 63n); + public static readonly Max: bigint = 2n ** 63n - 1n; + public static readonly Min: bigint = -(2n ** 63n); } export class DuckDBUTinyIntType extends BaseDuckDBType { @@ -115,8 +115,8 @@ export class DuckDBUBigIntType extends BaseDuckDBType { public static create(alias?: string): DuckDBUBigIntType { return alias ? new DuckDBUBigIntType(alias) : DuckDBUBigIntType.instance; } - public static readonly Max = 2n ** 64n - 1n; - public static readonly Min = 0n; + public static readonly Max: bigint = 2n ** 64n - 1n; + public static readonly Min: bigint = 0n; } export class DuckDBFloatType extends BaseDuckDBType { @@ -194,8 +194,8 @@ export class DuckDBHugeIntType extends BaseDuckDBType { public static create(alias?: string): DuckDBHugeIntType { return alias ? new DuckDBHugeIntType(alias) : DuckDBHugeIntType.instance; } - public static readonly Max = 2n ** 127n - 1n; - public static readonly Min = -(2n ** 127n); + public static readonly Max: bigint = 2n ** 127n - 1n; + public static readonly Min: bigint = -(2n ** 127n); } export class DuckDBUHugeIntType extends BaseDuckDBType { @@ -206,8 +206,8 @@ export class DuckDBUHugeIntType extends BaseDuckDBType { public static create(alias?: string): DuckDBUHugeIntType { return alias ? new DuckDBUHugeIntType(alias) : DuckDBUHugeIntType.instance; } - public static readonly Max = 2n ** 128n - 1n; - public static readonly Min = 0n; + public static readonly Max: bigint = 2n ** 128n - 1n; + public static readonly Min: bigint = 0n; } export class DuckDBVarCharType extends BaseDuckDBType {