mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 06:56:59 +00:00
11 lines
349 B
TypeScript
11 lines
349 B
TypeScript
import { Customer } from '@vercel/commerce/types/customer'
|
|
|
|
//customer has no type in commerce - SyliusCustomer type is defined in types/customer.ts
|
|
export const normalizeCustomer = (syliusCustomer: any): Customer => {
|
|
return {
|
|
firstName: syliusCustomer.firstName,
|
|
lastName: syliusCustomer.lastName,
|
|
email: syliusCustomer.email,
|
|
}
|
|
}
|