查看您的屏幕截图,您可以使用以下方法声明它:
declare module namespace {
export interface Address {
city?: any;
area?: any;
house_No?: any;
landmark?: any;
locality?: any;
}
export interface Order {
product_Name: string;
product_ID: string;
order_Active: boolean;
price: string;
qty: string;
}
export interface OrderList {
address: Address;
order: Order[];
order_ID: string;
timeStamp: number;
total_Amount: number;
user_ID: string;
}
export interface RootObject {
orderList: OrderList[];
orderSize: number;
status_code: string;
status_message: string;
}
}