typescript-closure-tools
Version:
Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files
29 lines (22 loc) • 711 B
TypeScript
/// <reference path="../../../globals.d.ts" />
declare module goog.structs {
interface Collection<T> {
/**
* @param {T} value Value to add to the collection.
*/
add(value: T): void;
/**
* @param {T} value Value to remove from the collection.
*/
remove(value: T): void;
/**
* @param {T} value Value to find in the collection.
* @return {boolean} Whether the collection contains the specified value.
*/
contains(value: T): boolean;
/**
* @return {number} The number of values stored in the collection.
*/
getCount(): number;
}
}