style: fix up lint

This commit is contained in:
iCrawl
2023-12-19 14:45:28 +01:00
parent 171cb182ed
commit d869d9b3fe
18 changed files with 44 additions and 44 deletions

View File

@@ -164,7 +164,7 @@ export class Documentation {
file: member.sources?.[0]?.fileName,
line: member.sources?.[0]?.line,
path: dirname(member.sources?.[0]?.fileName ?? ''),
};
};
if (prop!.name) {
info.push(`member of "${prop!.name}"`);

View File

@@ -29,7 +29,7 @@ export class DocumentedConstructor extends DocumentedItem<Constructor | Declarat
params: signature.parameters
? (signature as SignatureReflection).parameters?.map((param) =>
new DocumentedParam(param, this.config).serialize(),
)
)
: undefined,
};
}

View File

@@ -71,7 +71,7 @@ export class DocumentedEvent extends DocumentedItem<DeclarationReflection | Even
},
this.config,
).serialize(),
]
]
: undefined,
returnsDescription:
signature.comment?.blockTags

View File

@@ -57,7 +57,7 @@ export class DocumentedMethod extends DocumentedItem<DeclarationReflection | Met
params: signature.parameters
? (signature as SignatureReflection).parameters?.map((param) =>
new DocumentedParam(param, this.config).serialize(),
)
)
: undefined,
returns: signature.type
? [
@@ -74,7 +74,7 @@ export class DocumentedMethod extends DocumentedItem<DeclarationReflection | Met
},
this.config,
).serialize(),
]
]
: undefined,
returnsDescription:
signature.comment?.blockTags
@@ -113,7 +113,7 @@ export class DocumentedMethod extends DocumentedItem<DeclarationReflection | Met
{ names: param.type.names, description: param.description, nullable: param.nullable },
this.config,
).serialize(),
)
)
: undefined,
meta: new DocumentedItemMeta(data.meta, this.config).serialize(),
};

View File

@@ -66,7 +66,7 @@ export class DocumentedTypeDef extends DocumentedItem<DeclarationReflection | Ty
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
.trim() || undefined,
type: [[[(child.type as LiteralType | undefined)?.value]]],
}))
}))
: undefined,
};
}
@@ -99,7 +99,7 @@ export class DocumentedTypeDef extends DocumentedItem<DeclarationReflection | Ty
type: child.type
? new DocumentedVarType({ names: [parseType(child.type)] }, this.config).serialize()
: child.kindString === 'Method'
? new DocumentedVarType(
? new DocumentedVarType(
{
names: [
parseType({
@@ -114,8 +114,8 @@ export class DocumentedTypeDef extends DocumentedItem<DeclarationReflection | Ty
.trim(),
},
this.config,
).serialize()
: undefined,
).serialize()
: undefined,
}));
return {
@@ -185,7 +185,7 @@ export class DocumentedTypeDef extends DocumentedItem<DeclarationReflection | Ty
},
this.config,
).serialize(),
]
]
: undefined,
returnsDescription:
sig?.comment?.blockTags