Skip to content

Commit 565e77b

Browse files
committed
support both val and function
Signed-off-by: 迷渡 <justjavac@gmail.com>
1 parent 7d72f28 commit 565e77b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

typedoc-plugin-deno.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ export class DenoPlugin extends ConverterComponent {
1616
/** Triggered when the converter has finished resolving a project. */
1717
private onEndResolve(context: Context) {
1818
for (let signature of Object.values(context.project.reflections)) {
19-
if (!isSignature(signature)) {
20-
continue;
21-
}
22-
2319
const comment = signature.comment as Comment & I18nComment;
2420
if (!comment) {
2521
continue;
2622
}
2723

2824
processi18nLineByLine(comment);
2925

26+
if (!isSignature(signature)) {
27+
continue;
28+
}
29+
3030
if (comment && comment.hasTag('returns_i18n')) {
3131
comment.returns_i18n = comment.getTag('returns_i18n')!.text;
3232
comment.removeTags('returns_i18n');

0 commit comments

Comments
 (0)