Skip to content

Commit 2c4bc54

Browse files
committed
Tidy
1 parent ea7bbbc commit 2c4bc54

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/cylc/workspace/Lumino.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ import '@lumino/default-theme/style'
6161
*/
6262
6363
/**
64-
* Mitt event for adding a view to the workspace.
65-
* @typedef {Object} AddViewEvent
66-
* @property {string} name - the view to add
64+
* Options for views in the workspace.
65+
* @typedef {Object} IViewOptions
66+
* @property {string} name - the view component name
6767
* @property {Record<string,*>} initialOptions - prop passed to the view component
6868
*/
6969
@@ -96,7 +96,7 @@ const mainDiv = ref(null)
9696
/**
9797
* Mapping of widget ID to the name of view component and its initialOptions prop.
9898
*
99-
* @type {import('vue').Ref<Map<string, AddViewEvent>>}
99+
* @type {import('vue').Ref<Map<string, IViewOptions>>}
100100
*/
101101
const views = ref(new Map())
102102
@@ -150,7 +150,7 @@ onBeforeUnmount(() => {
150150
/**
151151
* Create a widget and add it to the dock.
152152
*
153-
* @param {AddViewEvent} event
153+
* @param {IViewOptions} param0
154154
* @param {boolean} onTop
155155
*/
156156
async function addView ({ name, initialOptions = {} }, onTop = true) {

0 commit comments

Comments
 (0)