Skip to content

Commit b329151

Browse files
Update crates/bindings-typescript/src/server/type_builders.ts
Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com> Signed-off-by: Noa <coolreader18@gmail.com>
1 parent ec52651 commit b329151

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

crates/bindings-typescript/src/server/type_builders.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ export type Infer<T extends TypeBuilder<any, any>> = InferTypeOfTypeBuilder<T>;
3838
* Helper type to extract the type of a row from an object.
3939
*/
4040
export type InferTypeOfRow<
41-
T extends Record<
42-
string,
43-
ColumnBuilder<any, any, any> | TypeBuilder<any, any>
44-
>,
41+
T extends RowObj,
4542
> = {
4643
[K in keyof T & string]: InferTypeOfTypeBuilder<CollapseColumn<T[K]>>;
4744
};

0 commit comments

Comments
 (0)