Skip to content

Instantly share code, notes, and snippets.

@washingtonsoares
Created January 8, 2021 20:54
Show Gist options
  • Select an option

  • Save washingtonsoares/6fa5ca173da26e5968c74e74d125a633 to your computer and use it in GitHub Desktop.

Select an option

Save washingtonsoares/6fa5ca173da26e5968c74e74d125a633 to your computer and use it in GitHub Desktop.
export type Product = {
id: number;
name: string;
price: number;
description: string;
imageUri: string;
}
export type OrderLocationData = {
latitude: number;
longitude: number;
address: string;
}
type ProductId = {
id: number;
}
export type OrderPayload = {
products: ProductId[];
} & OrderLocationData;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment