Skip to content

Commit 4ea7444

Browse files
committed
docs: generate docs
1 parent f309906 commit 4ea7444

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
@@ -2698,6 +2698,35 @@ function quux(foo, bar, baz) {
26982698
// Settings: {"jsdoc":{"preferredTypes":{"hertype":{"replacement":false},"histype":"HisType"}}}
26992699
// Options: [{"definedTypes":["MyType"],"preferredTypesDefined":true}]
27002700
// Message: The type 'HerType' is undefined.
2701+
2702+
class Foo {
2703+
/**
2704+
* @return {TEMPLATE_TYPE}
2705+
*/
2706+
bar () {
2707+
}
2708+
}
2709+
// Message: The type 'TEMPLATE_TYPE' is undefined.
2710+
2711+
class Foo {
2712+
/**
2713+
* @return {TEMPLATE_TYPE}
2714+
*/
2715+
invalidTemplateReference () {
2716+
}
2717+
}
2718+
2719+
/**
2720+
* @template TEMPLATE_TYPE
2721+
*/
2722+
class Bar {
2723+
/**
2724+
* @return {TEMPLATE_TYPE}
2725+
*/
2726+
validTemplateReference () {
2727+
}
2728+
}
2729+
// Message: The type 'TEMPLATE_TYPE' is undefined.
27012730
````
27022731

27032732
The following patterns are not considered problems:

0 commit comments

Comments
 (0)