Closed stafyniaksacha closed 1 year ago
I think you mention the same issue as https://github.com/maltejur/directus-extension-generate-types/issues/21, but the solution seems to be a different one. The type "string" in this case is just generated wrong and I should use the any[]
type instead. So with your example it would be:
export type TableB = {
table_a: any[] | TableA[]
}
See that issue for more information on this. I will just push the correct fix soon and thus close you pr, but still thanks a lot for noticing and creating this pr.
This fix many relations arrays declaration to also take the identifier field
before:
after: