mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 05:20:25 +00:00
Fixed flowjs ts3.1 event handlers types and TS2306 error (#42470)
* fix typo/copy-paste error in flowjs
* Fix Error TS2306 ("flowjs/index.d.ts not a module") in flowjs/ts3.1
* fix linter
This commit is contained in:
Vendored
+7
-3
@@ -123,14 +123,14 @@ declare namespace flowjs {
|
||||
interface FlowEventMap {
|
||||
fileSuccess: FileSuccessCallbackArguments;
|
||||
fileProgress: FileProgressCallbackArguments;
|
||||
fileAdded: FilesAddedCallbackArguments;
|
||||
filesAdded: FileAddedCallbackArguments;
|
||||
fileAdded: FileAddedCallbackArguments;
|
||||
filesAdded: FilesAddedCallbackArguments;
|
||||
filesSubmitted: FilesSubmittedCallbackArguments;
|
||||
fileRemoved: FileRemovedCallbackArguments;
|
||||
fileRetry: FileRetryCallbackArguments;
|
||||
fileError: FileErrorCallbackArguments;
|
||||
uploadStart: UploadStartCallbackArguments;
|
||||
complete: UploadStartCallbackArguments;
|
||||
complete: CompleteCallbackArguments;
|
||||
progress: ProgressCallbackArguments;
|
||||
error: ErrorCallbackArguments;
|
||||
catchAll: CatchAllCallbackArguments;
|
||||
@@ -157,3 +157,7 @@ declare namespace flowjs {
|
||||
type ErrorCallbackArguments = [string, FlowFile, FlowChunk];
|
||||
type CatchAllCallbackArguments = [Event];
|
||||
}
|
||||
// use namespace export like in flowjs/index.d.ts. Fix TS2306 "flowjs/index.d.ts not a module"
|
||||
// tslint:disable-next-line export-just-namespace
|
||||
export = flowjs;
|
||||
export as namespace flowjs;
|
||||
|
||||
Reference in New Issue
Block a user