change network response data type

This commit is contained in:
pengfei.zhou 2020-04-28 10:17:14 +08:00 committed by osborn
parent 7e1be90e62
commit ff6a2c9aad
3 changed files with 3 additions and 3 deletions

2
doric-js/index.d.ts vendored
View File

@ -795,7 +795,7 @@ declare module 'doric/lib/src/native/network' {
timeout?: number;
}
export interface IResponse {
data: any;
data: string;
status: number;
headers?: {
[index: string]: string;

View File

@ -12,7 +12,7 @@ export interface IRequest {
timeout?: number;
}
export interface IResponse {
data: any;
data: string;
status: number;
headers?: {
[index: string]: string;

View File

@ -35,7 +35,7 @@ export interface IRequest {
export interface IResponse {
// `data` is the response that was provided by the server
data: any,
data: string,
// `status` is the HTTP status code from the server response
status: number,
// `headers` the headers that the server responded with