-
Hey, I'm trying to export a function with the type signature of the 'fields' function of a drizzle object. When generatic ts declaration files, I get:
This is what I'm trying to do: ...
Extender extends
| ((
t:
Parameters<
NonNullable<Parameters<SchemaBuilder["drizzleObject"]>[1]["fields"]>
>[0],
) => FieldMap)
... Do you happen to know whats causing this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I don't know exactly what causes this. I just pushed up a change that exports (t: DrizzleFieldBuilder<builder.$inferSchemaTypes>) => FieldMap depending on the use case you might need to define more of the DrizzleFieldBuilder params (or pass them as any?) |
Beta Was this translation helpful? Give feedback.
Did you mean like this? I think that works as it should, thanks!