UNPKG

autumn-js

Version:

Autumn JS Library

16 lines (13 loc) 465 B
import { C as CustomerData } from '../cusTypes-BD42O-7Z.js'; 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 };