mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add type definition and tests for EvaporateJS
This commit is contained in:
@@ -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