MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / typedInvoice

Function typedInvoice

app/src/types/dbColumns.types.ts:127–131  ·  view source on GitHub ↗
(
  input: T,
)

Source from the content-addressed store, hash-verified

125 .passthrough();
126
127export const typedInvoice = <T extends Pick<Invoice, "description">>(
128 input: T,
129): Omit<T, "description"> & z.infer<typeof invoiceSchema> =>
130 // @ts-expect-error zod doesn't type `passthrough()` correctly.
131 invoiceSchema.parse(input);

Callers 4

InvoiceBodyFunction · 0.90
sendInvoiceNotificationFunction · 0.90
sendPaymentFailedFunction · 0.90
sendPaymentSuccessfulFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected