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

35 lines (28 loc) 1.24 kB
/// <reference path="../../../globals.d.ts" /> /// <reference path="./eventtarget.d.ts" /> declare module goog.events { class FileDropHandler extends FileDropHandler__Class { } /** Fake class which should be extended to avoid inheriting static properties */ class FileDropHandler__Class extends goog.events.EventTarget__Class { /** * A files drag and drop event detector. Gets an {@code element} as parameter * and fires {@code goog.events.FileDropHandler.EventType.DROP} event when files * are dropped in the {@code element}. * * @param {Element|Document} element The element or document to listen on. * @param {boolean=} opt_preventDropOutside Whether to prevent a drop on the * area outside the {@code element}. Default false. * @constructor * @extends {goog.events.EventTarget} * @final */ constructor(element: Element|Document, opt_preventDropOutside?: boolean); } } declare module goog.events.FileDropHandler { /** * The types of events fired by this class. * @enum {string} */ enum EventType { DROP } }