Skip to content

Commit

Permalink
remove consts
Browse files Browse the repository at this point in the history
  • Loading branch information
darkgnotic committed Feb 1, 2025
1 parent 901ca48 commit a900f21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/zero-schema/src/builder/table-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ export const column = {
json,
};

export class TableBuilder<const TShape extends TableSchema> {
export class TableBuilder<TShape extends TableSchema> {
readonly #schema: TShape;
constructor(schema: TShape) {
this.#schema = schema;
}

from<const DbName extends string>(dbName: DbName) {
from<DbName extends string>(dbName: DbName) {
return new TableBuilder<TShape>({
...this.#schema,
dbName,
Expand Down Expand Up @@ -147,7 +147,7 @@ class ColumnBuilder<TShape extends Optional<SchemaValue<any>, 'dbName'>> {
this.#schema = schema;
}

from<const DbName extends string>(dbName: DbName) {
from<DbName extends string>(dbName: DbName) {
return new ColumnBuilder<TShape & {dbName: string}>({
...this.#schema,
dbName,
Expand Down

0 comments on commit a900f21

Please sign in to comment.