change network response data type
This commit is contained in:
parent
7e1be90e62
commit
ff6a2c9aad
2
doric-js/index.d.ts
vendored
2
doric-js/index.d.ts
vendored
@ -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;
|
||||
|
2
doric-js/lib/src/native/network.d.ts
vendored
2
doric-js/lib/src/native/network.d.ts
vendored
@ -12,7 +12,7 @@ export interface IRequest {
|
||||
timeout?: number;
|
||||
}
|
||||
export interface IResponse {
|
||||
data: any;
|
||||
data: string;
|
||||
status: number;
|
||||
headers?: {
|
||||
[index: string]: string;
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user