File tree Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -2125,6 +2125,21 @@ function quux () {
2125
2125
2126
2126
}
2127
2127
// Settings: {"jsdoc":{"tagNamePreference":{"augments":{"message":"@extends is to be used over @augments.","replacement":"extends"}}}}
2128
+
2129
+ /**
2130
+ * Registers the `target` class as a transient dependency; each time the dependency is resolved a new instance will be created.
2131
+ *
2132
+ * @param target - The class / constructor function to register as transient.
2133
+ *
2134
+ * @example ` ` ` ts
2135
+ @transient()
2136
+ class Foo { }
2137
+ ```
2138
+ * @param Time for a new tag
2139
+ */
2140
+ export function transient<T>(target ?: T ): T {
2141
+ // ...
2142
+ }
2128
2143
````
2129
2144
2130
2145
Original file line number Diff line number Diff line change 5
5
"url" : " http://gajus.com"
6
6
},
7
7
"dependencies" : {
8
- "comment-parser" : " ^0.6.2 " ,
8
+ "comment-parser" : " ^0.7.0 " ,
9
9
"debug" : " ^4.1.1" ,
10
10
"jsdoctypeparser" : " ^5.1.1" ,
11
11
"lodash" : " ^4.17.15" ,
Original file line number Diff line number Diff line change @@ -591,5 +591,27 @@ export default {
591
591
} ,
592
592
} ,
593
593
} ,
594
+ {
595
+ code : `
596
+ /**
597
+ * Registers the \`target\` class as a transient dependency; each time the dependency is resolved a new instance will be created.
598
+ *
599
+ * @param target - The class / constructor function to register as transient.
600
+ *
601
+ * @example \`\`\`ts
602
+ @transient()
603
+ class Foo { }
604
+ \`\`\`
605
+ * @param Time for a new tag
606
+ */
607
+ export function transient<T>(target?: T): T {
608
+ // ...
609
+ }
610
+ ` ,
611
+ parser : require . resolve ( '@typescript-eslint/parser' ) ,
612
+ parserOptions : {
613
+ sourceType : 'module' ,
614
+ } ,
615
+ } ,
594
616
] ,
595
617
} ;
You can’t perform that action at this time.
0 commit comments