mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-27 12:21:19 +08:00
Add type definition and tests for EvaporateJS
This commit is contained in:
1 parent
299b5caa22
commit
06f39135fe
2 files changed
+20
No files matched your search
@@ -0,0 +1,7 @@
|
||||
/// <reference path="./evaporate.d.ts" />
|
||||
|
||||
function test_upload() {
|
||||
var evaporate = new Evaporate({});
|
||||
var uploadId = evaporate.add({});
|
||||
evaporate.cancel(uploadId);
|
||||
}
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
// Type definitions for EvaporateJS
|
||||
// Project: https://github.com/TTLabs/EvaporateJS
|
||||
// Definitions by: Andrew Kuklewicz <https://github.com/kookster/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
declare class Evaporate {
|
||||
cancel(id:string): boolean;
|
||||
constructor(config:any);
|
||||
add(config:any): string;
|
||||
}
|
||||
|
||||
declare module 'evaporate' {
|
||||
export = Evaporate;
|
||||
}
|
||||
Reference in new issue
Block a user