mirror of
https://github.com/hanzoai/sign.git
synced 2026-10-21 01:21:51 +00:00
packages/app-tests has no typecheck script, and 10 errors had collected in its specs. None changes what a spec sends or checks: - Two API specs map over create-many's JSON, which Playwright types as any, so the callback's parameters were implicitly any. The responses are typed as TCreateEnvelopeRecipientsResponse, as the file already types its other responses. - A PDF built with Buffer.from(Uint8Array) is a Buffer<ArrayBuffer>; its helpers said Buffer, which @types/node 26 reads as possibly shared memory, and a Blob takes no shared memory. - The seed's updateDocumentOptions was typed as Prisma's unchecked update input, which has no relation fields, while the dictation specs upsert documentMeta through it — which Prisma takes as the checked input. It is typed as EnvelopeUpdateInput; every caller passes fields that input has. - A spec typed a seeded document as Document, a model the schema replaced with Envelope. - The alignment spec picked each field's type and fieldMeta apart, which loses which meta goes with which type; it drops the two keys the payload does not take and spreads the rest, and types the payload as the schema's input, which is what a client sends. Co-authored-by: Hanzo Dev <[email protected]>