Skip to content

Build your personal knowledge base with Trilium Notes

add jsdoc to indicate possibility to use getContent async

Tom65c725c21eae
diff --git a/src/public/app/widgets/type_widgets/type_widget.js b/src/public/app/widgets/type_widgets/type_widget.js
index faa1ff98a9..f3dd88317b 100644
--- a/src/public/app/widgets/type_widgets/type_widget.js
+++ b/src/public/app/widgets/type_widgets/type_widget.js
@@ -39,8 +39,8 @@ export default class TypeWidget extends NoteContextAwareWidget {
}
/**
- * FIXME: add async here to indicate promise?
- */
+ * @returns {Promise|*} promise resolving content or directly the content
+ */
getContent() {}
focus() {}