UNPKG

typescript-closure-tools

Version:

Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files

39 lines (31 loc) 1.27 kB
/// <reference path="../../../globals.d.ts" /> /// <reference path="../events/event.d.ts" /> declare module goog.fs { class ProgressEvent extends ProgressEvent__Class { } /** Fake class which should be extended to avoid inheriting static properties */ class ProgressEvent__Class extends goog.events.Event__Class { /** * A wrapper for the progress events emitted by the File APIs. * * @param {!ProgressEvent} event The underlying event object. * @param {!Object} target The file access object emitting the event. * @extends {goog.events.Event} * @constructor * @final */ constructor(event: ProgressEvent, target: Object); /** * @return {boolean} Whether or not the total size of the of the file being * saved is known. */ isLengthComputable(): boolean; /** * @return {number} The number of bytes saved so far. */ getLoaded(): number; /** * @return {number} The total number of bytes in the file being saved. */ getTotal(): number; } }