last any type + reference

This commit is contained in:
unknown 2015-02-25 00:28:03 +01:00
parent c6f2524d66
commit d1e97f22f3
2 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,5 @@
/// <reference path="zip.js.d.ts" />
// create the blob object storing the data to compress
var blob: Blob = new Blob([ "Lorem ipsum dolor sit amet, consectetuer adipiscing elit..." ], {
type : "text/plain"
@ -38,6 +40,6 @@ function unzipBlob(blob: Blob, callback: (unzippedBlob: Blob) => void) {
}, theErrorHandler);
}
function theErrorHandler(message) {
function theErrorHandler(message: any) {
console.error(message);
}

2
zip.js/zip.js.d.ts vendored
View File

@ -58,7 +58,7 @@ declare module zip {
export class Writer {
public init(callback: () => void, onerror?: (error: any) => void): void;
public writeUint8Array(array: Uint8Array, callback: () => void, onerror?: (error: any) => void): void;
public getData(callback: (data) => void, onerror?: (error: any) => void) : void;
public getData(callback: (data: any) => void, onerror?: (error: any) => void) : void;
}
export class TextWriter extends Writer {