typescript-closure-tools
Version:
Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files
37 lines (29 loc) • 1.1 kB
TypeScript
/// <reference path="../../../globals.d.ts" />
declare module goog.testing {
class TestQueue extends TestQueue__Class { }
/** Fake class which should be extended to avoid inheriting static properties */
class TestQueue__Class {
/**
* Generic queue for writing unit tests
* @constructor
*/
constructor();
/**
* Adds a new event onto the queue.
* @param {Object} event The event to queue.
*/
enqueue(event: Object): void;
/**
* Returns whether the queue is empty.
* @return {boolean} Whether the queue is empty.
*/
isEmpty(): boolean;
/**
* Gets the next event from the queue. Throws an exception if the queue is
* empty.
* @param {string=} opt_comment Comment if the queue is empty.
* @return {Object} The next event from the queue.
*/
dequeue(opt_comment?: string): Object;
}
}