Skip to content

Commit

Permalink
fix(models): table model namings
Browse files Browse the repository at this point in the history
  • Loading branch information
BioPhoton committed May 17, 2024
1 parent fb8c49b commit 7360468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/models/src/lib/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const tablePrimitiveSchema = z.object(
{ description: 'Table with primitive rows and optional alignment columns' },
);

const tableObjectColumnSchema = z.object(
const tableObjectSchema = z.object(
{
columns: z
.union([z.array(tableAlignmentSchema), z.array(tableColumnObjectSchema)])
Expand All @@ -48,5 +48,5 @@ const tableObjectColumnSchema = z.object(
);

export const tableSchema = (description = 'Table information') =>
z.union([tablePrimitiveSchema, tableObjectColumnSchema], { description });
z.union([tablePrimitiveSchema, tableObjectSchema], { description });
export type Table = z.infer<ReturnType<typeof tableSchema>>;

0 comments on commit 7360468

Please sign in to comment.