We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7bf4079 + 62cd753 commit 4bfbb6dCopy full SHA for 4bfbb6d
api/src/DuckDBLogicalType.ts
@@ -145,8 +145,8 @@ export class DuckDBLogicalType {
145
public get alias(): string | undefined {
146
return duckdb.logical_type_get_alias(this.logical_type) || undefined;
147
}
148
- public set alias(newAlias: string) {
149
- duckdb.logical_type_set_alias(this.logical_type, newAlias);
+ public set alias(newAlias: string | null | undefined) {
+ duckdb.logical_type_set_alias(this.logical_type, newAlias || '');
150
151
public asType(): DuckDBType {
152
const alias = this.alias;
0 commit comments