Ruben
Ruben
DTDrizzle Team
Created by Ruben on 4/20/2024 in #help
tabje.js exports not defined in table.d.ts
Is there any reason why the table.d.ts is not matching with the table.js file? table.js has these exported Symbols
export {
BaseName,
Columns,
ExtraConfigBuilder,
IsAlias,
OriginalName,
Schema,
// ...
};
export {
BaseName,
Columns,
ExtraConfigBuilder,
IsAlias,
OriginalName,
Schema,
// ...
};
But in the table.d.ts file these are not defined nor exported
export {};
export {};
So now when I import one of these symbols my editor is giving the error "'"drizzle-orm"' has no exported member named 'Columns'. Did you mean 'Column'?ts(2724). The reason I want this, is being able to read all table columns at run-time but still keep a single source of truth:
console.log(Object.keys(sqliteTable(...)[Columns])); // ['column1', 'column2']
console.log(Object.keys(sqliteTable(...)[Columns])); // ['column1', 'column2']
1 replies