diff --git a/evaporate/evaporate-tests.ts b/evaporate/evaporate-tests.ts new file mode 100644 index 000000000..559d61fe7 --- /dev/null +++ b/evaporate/evaporate-tests.ts @@ -0,0 +1,7 @@ +/// + +function test_upload() { + var evaporate = new Evaporate({}); + var uploadId = evaporate.add({}); + evaporate.cancel(uploadId); +} diff --git a/evaporate/evaporate.d.ts b/evaporate/evaporate.d.ts new file mode 100644 index 000000000..07c82325f --- /dev/null +++ b/evaporate/evaporate.d.ts @@ -0,0 +1,13 @@ +// Type definitions for EvaporateJS +// Project: https://github.com/TTLabs/EvaporateJS +// Definitions by: Andrew Kuklewicz +// 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; +}