UNPKG

autumn-js

Version:
17 lines (14 loc) 482 B
import { C as CustomerData } from '../cusTypes-CmsDQqVo.js'; import 'zod/v4'; declare const withAuth: <T extends { customerId?: string; customerData?: CustomerData; authProvider?: string; }>({ fn, withCustomerData, requireCustomer, }: { fn: (args: T) => Promise<any>; withCustomerData?: boolean; requireCustomer?: boolean; }) => (args: Omit<T, "customerId"> & { encryptedCustomerId?: string; }, request?: Request) => Promise<any>; export { withAuth };