Trying to force d.ts files to not reference lodash as a type, since they are not importing it correctly as a module.
This commit is contained in:
Родитель
3adbad70e0
Коммит
0ff792117c
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "simplerestclients",
|
||||
"version": "0.0.3",
|
||||
"version": "0.0.4",
|
||||
"description": "A library of components for accessing RESTful services with javascript/typescript.",
|
||||
"author": "David de Regt <David.de.Regt@microsoft.com>",
|
||||
"scripts": {
|
||||
|
|
|
@ -84,7 +84,7 @@ export class GenericRestClient {
|
|||
});
|
||||
}
|
||||
|
||||
protected _getHeaders(): _.Dictionary<string> {
|
||||
protected _getHeaders(): { [header: string]: string } {
|
||||
// Virtual function -- No-op by default
|
||||
return {};
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ export interface WebResponse<T> {
|
|||
method: string;
|
||||
statusCode: number;
|
||||
statusText: string;
|
||||
headers: _.Dictionary<string>;
|
||||
headers: { [header: string]: string };
|
||||
body: T;
|
||||
}
|
||||
|
||||
|
@ -79,7 +79,7 @@ export interface WebRequestOptions {
|
|||
acceptType?: string;
|
||||
contentType?: string;
|
||||
sendData?: SendDataType;
|
||||
headers?: _.Dictionary<string>;
|
||||
headers?: { [header: string]: string };
|
||||
|
||||
onProgress?: (progressEvent: XMLHttpRequestProgressEvent) => void;
|
||||
|
||||
|
@ -215,7 +215,7 @@ export class SimpleWebRequest<T> {
|
|||
this._url = newUrl;
|
||||
}
|
||||
|
||||
getRequestHeaders(): _.Dictionary<string> {
|
||||
getRequestHeaders(): { [header: string]: string } {
|
||||
return _.clone(this._options.headers);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче