fix: docgen (#8582)

This commit is contained in:
Almeida
2022-09-01 21:04:58 +01:00
committed by GitHub
parent 3b7ba4062e
commit 8a91d7c256

View File

@@ -6,8 +6,7 @@ export class DocumentedItem<T = DeclarationReflection | Item> {
public serialize(): unknown {
try {
this.serializer();
return;
return this.serializer();
} catch (error_) {
const error = error_ as Error;
error.message = `Error while serializing ${this.detailedName()}: ${error.message}`;
@@ -15,7 +14,7 @@ export class DocumentedItem<T = DeclarationReflection | Item> {
}
}
protected serializer() {
protected serializer(): unknown {
throw new Error("Method 'serializer()' must be implemented.");
}