* Parse (and mostly support) template tag constraints A bunch of tests hit the asserts I added though. * Messy version is finished. Need to add a few tests * Refactor to be smaller * Small refactor + Add one test * Another test * Minor cleanup * Fix error reporting on type parameters on ctors * Simplify syntax of `@template` tag This is a breaking change, but in my sample, nobody except webpack used the erroneous syntax. I need to improve the error message, so jsdocTemplateTag3 currently fails to remind me of that. * Better error message for template tag * Fix fourslash baselines * Another fourslash update * Address PR comments * Simplify getEffectiveTypeParameterDeclarations Make checkGrammarConstructorTypeParameters do a little more work
17 lines
421 B
TypeScript
17 lines
421 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
// @Filename: quickInfoJsDocTags.ts
|
|
/////**
|
|
//// * Doc
|
|
//// * @author Me
|
|
//// * @augments {C<T>} Augments it
|
|
//// * @template T A template
|
|
//// * @type {number | string} A type
|
|
//// * @typedef {number | string} NumOrStr
|
|
//// * @property {number} x The prop
|
|
//// * @param {number} x The param
|
|
//// * @returns The result
|
|
//// */
|
|
////function /**/foo(x) {}
|
|
|
|
verify.baselineQuickInfo();
|