mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-27 12:21:19 +08:00
Fixed config type of $upload.http()
$upload.http() is used to send the file binary or any data to the server through the 'data' field in the config object, not the 'file' field. Hence, its config type should be just ng.IRequestConfig, and not ng.IFileUploadConfig
This commit is contained in:
1 parent
42c8a3b74c
commit
9f41619a13
1 file changed
+2
-2
+2
-2
@@ -9,7 +9,7 @@ declare module ng.angularFileUpload {
|
||||
|
||||
interface IUploadService {
|
||||
|
||||
http<T>(config: IFileUploadConfig): IUploadPromise<T>;
|
||||
http<T>(config: ng.IRequestConfig): IUploadPromise<T>;
|
||||
upload<T>(config: IFileUploadConfig): IUploadPromise<T>;
|
||||
}
|
||||
|
||||
@@ -23,4 +23,4 @@ declare module ng.angularFileUpload {
|
||||
file: File;
|
||||
fileName?: string;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user