We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bf4079 commit 62cd753Copy full SHA for 62cd753
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