Closed skowrons closed 8 months ago
One example from my app of the generated type:
export type ProjectsTasksResponse<Tdescription = unknown, Texpand = unknown> = Required<ProjectsTasksRecord<Tdescription>> & BaseSystemFields<Texpand>
Sry I have found my error. Just put two types in the generic. 😅
export type expandedtype = FirstTableResponse<{...your json definition...}, {
relationField: RelationTableResponse;
}>;
Describe the bug When I have a JSON field in pocketbase it will break typescript when using expansion: Property 'XXX' does not exist on type '{}'.
Steps to reproduce
Versions pocketbase-typegen version: 1.2.1 pocketbase version: 0.18.2