File tree Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change @@ -741,6 +741,8 @@ const canExportChildrenType = new Set([
741
741
'TSInterfaceDeclaration' ,
742
742
'TSTypeLiteral' ,
743
743
'TSTypeAliasDeclaration' ,
744
+ 'TSTypeParameterInstantiation' ,
745
+ 'TSTypeReference' ,
744
746
'ClassDeclaration' ,
745
747
'ClassBody' ,
746
748
'ClassDefinition' ,
Original file line number Diff line number Diff line change @@ -4191,6 +4191,58 @@ function quux (foo) {
4191
4191
}
4192
4192
} ,
4193
4193
} ,
4194
+ {
4195
+ code : `
4196
+ /**
4197
+ * Command options for the login command
4198
+ */
4199
+ export type LoginOptions = CmdOptions<{
4200
+ username?: string;
4201
+ password?: string;
4202
+ }>;
4203
+ ` ,
4204
+ errors : [
4205
+ {
4206
+ line : 6 ,
4207
+ message : 'Missing JSDoc comment.' ,
4208
+ } ,
4209
+ {
4210
+ line : 7 ,
4211
+ message : 'Missing JSDoc comment.' ,
4212
+ } ,
4213
+ ] ,
4214
+ options : [
4215
+ {
4216
+ publicOnly : {
4217
+ ancestorsOnly : true ,
4218
+ } ,
4219
+ contexts : [
4220
+ 'TSTypeAliasDeclaration' ,
4221
+ 'TSInterfaceDeclaration' ,
4222
+ 'TSMethodSignature' ,
4223
+ 'TSPropertySignature' ,
4224
+ ] ,
4225
+ } ,
4226
+ ] ,
4227
+ output : `
4228
+ /**
4229
+ * Command options for the login command
4230
+ */
4231
+ export type LoginOptions = CmdOptions<{
4232
+ /**
4233
+ *
4234
+ */
4235
+ username?: string;
4236
+ /**
4237
+ *
4238
+ */
4239
+ password?: string;
4240
+ }>;
4241
+ ` ,
4242
+ languageOptions : {
4243
+ parser : typescriptEslintParser ,
4244
+ } ,
4245
+ } ,
4194
4246
] ,
4195
4247
valid : [
4196
4248
{
You can’t perform that action at this time.
0 commit comments