mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
improvements in API docs generation
This commit is contained in:
@@ -88,12 +88,12 @@ class AppContext extends Component {
|
||||
this.triggerEvent('initialRenderComplete');
|
||||
}
|
||||
|
||||
/** @returns {Promise} */
|
||||
/** @returns {Promise<void>} */
|
||||
triggerEvent(name, data) {
|
||||
return this.handleEvent(name, data);
|
||||
}
|
||||
|
||||
/** @returns {Promise} */
|
||||
/** @returns {Promise<*>} */
|
||||
triggerCommand(name, data = {}) {
|
||||
for (const executor of this.components) {
|
||||
const fun = executor[`${name}Command`];
|
||||
|
||||
Reference in New Issue
Block a user