From bce4ab3facf63f70a0dd3cefa1f8c82453dba2d4 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Fri, 24 Jun 2022 19:12:13 +1000 Subject: Add type annotations for UI options --- src/components/TutorialPane.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/components/TutorialPane.vue') 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, 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); -- cgit v1.2.3