closure-compiler
closure-compiler copied to clipboard
Support for type annotating arrays using `string[]` syntax rather than `Array<string>`
/** @type {string[]} */
// ^
// JSC_TYPE_PARSE_ERROR: Bad type annotation. expected closing }
const x = ["hi"];
This is supported in both TypeScript and JSDoc. It would be nice if closure supported this as well.