orchid-orm 1.5.10 → 1.5.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -6,9 +6,8 @@ import fs from 'fs/promises';
6
6
  import typescript from 'typescript';
7
7
 
8
8
  const createBaseTable = (options = { columnTypes }) => {
9
- return create(
10
- options.columnTypes
11
- );
9
+ const ct = typeof options.columnTypes === "function" ? options.columnTypes(columnTypes) : options.columnTypes;
10
+ return create(ct);
12
11
  };
13
12
  const create = (columnTypes2) => {
14
13
  return class BaseTable {