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

14 lines (12 loc) 230 B
/** * @typedef {string|number} */ example.UnionType; /** * @param {example.UnionType} x */ example.unionFunction = function(x) { }; /** * @param {example.UnionType<any>} x */ example.genericUnionFunction = function(x) { };