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

33 lines (26 loc) 1.09 kB
/// <reference path="../../../globals.d.ts" /> declare module goog.graphics { class Stroke extends Stroke__Class { } /** Fake class which should be extended to avoid inheriting static properties */ class Stroke__Class { /** * Creates an immutable stroke object. * * @param {number|string} width The width of the stroke. * @param {string} color The color of the stroke. * @constructor * @deprecated goog.graphics is deprecated. It existed to abstract over browser * differences before the canvas tag was widely supported. See * http://en.wikipedia.org/wiki/Canvas_element for details. */ constructor(width: number|string, color: string); /** * @return {number|string} The width of this stroke. */ getWidth(): number|string; /** * @return {string} The color of this stroke. */ getColor(): string; } }