mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
last any type + reference
This commit is contained in:
parent
c6f2524d66
commit
d1e97f22f3
@ -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
2
zip.js/zip.js.d.ts
vendored
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user