Skip to content

Commit

Permalink
types: improved props types
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Jan 8, 2024
1 parent fd361ce commit 5bf9b74
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/floating-vue/src/components/PopperWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ import Popper from './Popper.vue'
import PopperContent from './PopperContent.vue'
import PopperMethods from './PopperMethods'
import ThemeClass from './ThemeClass'
import type { Placement } from '../util/popper.js'
export type TriggerEvent = 'hover' | 'click' | 'focus' | 'touch'
Expand Down Expand Up @@ -124,7 +125,7 @@ export default defineComponent({
},
placement: {
type: String,
type: String as PropType<Placement>,
default: undefined,
},
Expand Down Expand Up @@ -184,7 +185,7 @@ export default defineComponent({
},
strategy: {
type: String,
type: String as PropType<'absolute' | 'fixed'>,
default: undefined,
},
Expand Down Expand Up @@ -227,7 +228,7 @@ export default defineComponent({
},
autoSize: {
type: [Boolean, String],
type: [Boolean, String] as PropType<boolean | 'min' | 'max'>,
default: undefined,
},
Expand Down

0 comments on commit 5bf9b74

Please sign in to comment.