Skip to content
This repository has been archived by the owner on Jan 29, 2019. It is now read-only.

Commit

Permalink
fix(xhr): stricter types for xhr headers and params
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsasharegan committed Feb 28, 2018
1 parent 4945936 commit 1a85d77
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/upload-adapters/xhr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export type XHRUploadOptions<T = any> = {
* An object of additional parameters to transfer to the server.
* This is the same as adding hidden input fields in the form element.
*/
params?: { [key: string]: any };
headers?: { [key: string]: any };
params?: { [key: string]: string };
headers?: { [key: string]: string };
/**
* The XMLHttpRequest.responseType property is an enumerated value that
* returns the type of response. It also lets the author change the response
Expand Down Expand Up @@ -97,8 +97,8 @@ export class XHRUploadAdapter<T = any> implements UploaderInterface {
public withCredentials: boolean;
public timeout: number;
public paramName: string;
public params: AnyObject;
public headers: AnyObject;
public params: { [key: string]: string };
public headers: { [key: string]: string };
public responseType: XMLHttpRequestResponseType;
public errUploadError: (xhr: XMLHttpRequest) => string;
public errUploadTimeout: (xhr: XMLHttpRequest) => string;
Expand Down

0 comments on commit 1a85d77

Please sign in to comment.