Skip to content

Commit 4569318

Browse files
committed
simplify doc validator
1 parent 1e96aca commit 4569318

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/convex-helpers/validators.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export const doc = <
332332
schema: Schema,
333333
tableName: TableName,
334334
): AddFieldsToValidator<
335-
(typeof schema)["tables"][TableName]["validator"],
335+
Schema["tables"][TableName]["validator"],
336336
SystemFields<TableName>
337337
> => {
338338
function addSystemFields<V extends Validator<any, any, any>>(
@@ -405,7 +405,7 @@ export function typedV<Schema extends SchemaDefinition<any, boolean>>(
405405
>(
406406
tableName: TableName,
407407
): AddFieldsToValidator<
408-
(typeof schema)["tables"][TableName]["validator"],
408+
Schema["tables"][TableName]["validator"],
409409
SystemFields<TableName>
410410
> => doc(schema, tableName),
411411
};

0 commit comments

Comments
 (0)