Skip to content

Commit 2289eed

Browse files
l1bbcsgbrettz9
authored andcommitted
docs: generate docs
1 parent 44acbe9 commit 2289eed

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2784,6 +2784,35 @@ function quux(foo, bar, baz) {
27842784
// Settings: {"jsdoc":{"preferredTypes":{"hertype":{"replacement":false},"histype":"HisType"}}}
27852785
// Options: [{"definedTypes":["MyType"],"preferredTypesDefined":true}]
27862786
// Message: The type 'HerType' is undefined.
2787+
2788+
class Foo {
2789+
/**
2790+
* @return {TEMPLATE_TYPE}
2791+
*/
2792+
bar () {
2793+
}
2794+
}
2795+
// Message: The type 'TEMPLATE_TYPE' is undefined.
2796+
2797+
class Foo {
2798+
/**
2799+
* @return {TEMPLATE_TYPE}
2800+
*/
2801+
invalidTemplateReference () {
2802+
}
2803+
}
2804+
2805+
/**
2806+
* @template TEMPLATE_TYPE
2807+
*/
2808+
class Bar {
2809+
/**
2810+
* @return {TEMPLATE_TYPE}
2811+
*/
2812+
validTemplateReference () {
2813+
}
2814+
}
2815+
// Message: The type 'TEMPLATE_TYPE' is undefined.
27872816
````
27882817

27892818
The following patterns are not considered problems:

0 commit comments

Comments
 (0)