typescript-closure-tools
Version:
Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files
32 lines (24 loc) • 772 B
TypeScript
/// <reference path="../../../globals.d.ts" />
declare module goog.vec {
/** @typedef {!Float32Array} */
type Float32 = Float32Array;
/** @typedef {!Float64Array} */
type Float64 = Float64Array;
/** @typedef {!Array.<number>} */
interface Number extends Array<number> { }
/** @typedef {!goog.vec.Float32|!goog.vec.Float64|!goog.vec.Number} */
type AnyType = goog.vec.Float32|goog.vec.Float64|goog.vec.Number;
/**
* @deprecated Use AnyType.
* @typedef {!Float32Array|!Array.<number>}
*/
type ArrayType = Float32Array|number[];
/**
* For graphics work, 6 decimal places of accuracy are typically all that is
* required.
*
* @type {number}
* @const
*/
var EPSILON: number;
}