You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(twenty-partners): strictly type list-available-partners, drop as any
The CoreApiClient is codegenerated from the synced workspace schema, so the
`/partners` query is fully typed. Remove the type-lossy `as any` on the query
and the `as Array<{ node: Partner }>` result cast, and derive the response type
from the selection itself (dropping the hand-written Partner DTO that claimed
`amountMicros: number` for a BigFloat and required fields for optional ones).
This also fixes the latent "Property 'edges' does not exist on type '{}'" error
the cast was masking.
Copy file name to clipboardExpand all lines: packages/twenty-apps/internal/twenty-partners/src/logic-functions/list-available-partners.logic-function.ts
+44-60Lines changed: 44 additions & 60 deletions
Original file line number
Diff line number
Diff line change
@@ -4,74 +4,58 @@ import { defineLogicFunction } from 'twenty-sdk/define';
0 commit comments