aboutsummaryrefslogtreecommitdiff
path: root/src/components/TutorialPane.vue
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-06-24 19:12:13 +1000
committerTerry Truong <terry06890@gmail.com>2022-06-24 19:12:13 +1000
commitbce4ab3facf63f70a0dd3cefa1f8c82453dba2d4 (patch)
treece156edd2ba0c5e07e264c003300cb30204dec66 /src/components/TutorialPane.vue
parent12a4c1fd39b12bda8d98d3a03ee3751c95b7a91c (diff)
Add type annotations for UI options
Diffstat (limited to 'src/components/TutorialPane.vue')
-rw-r--r--src/components/TutorialPane.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/TutorialPane.vue b/src/components/TutorialPane.vue
index 3cc1eb6..0bbe8e9 100644
--- a/src/components/TutorialPane.vue
+++ b/src/components/TutorialPane.vue
@@ -2,11 +2,11 @@
import {defineComponent, PropType} from 'vue';
import CloseIcon from './icon/CloseIcon.vue';
import RButton from './RButton.vue';
-import {Action} from '../lib';
+import {Action, UiOptions} from '../lib';
export default defineComponent({
props: {
- uiOpts: {type: Object, required: true},
+ uiOpts: {type: Object as PropType<UiOptions>, required: true},
triggerFlag: {type: Boolean, required: true},
skipWelcome: {type: Boolean, default: false},
height: {type: String, default: 'auto'},
@@ -73,7 +73,7 @@ export default defineComponent({
let disabledActions = this.uiOpts.disabledActions;
let currentAction = stageActions[this.stage];
for (let i = 1; i <= this.maxStage; i++){
- let action = stageActions[i];
+ let action = stageActions[i] as Action;
if (i <= this.stage){
if (disabledActions.has(action)){
disabledActions.delete(action);