Skip to content

Commit

Permalink
types(controls): allow null for modelValue
Browse files Browse the repository at this point in the history
`null` is being added as a valid `modelValue` type to all controls.
  • Loading branch information
andre.brdoch committed Nov 12, 2024
1 parent f583371 commit 3fa4604
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import HstSimpleCheckbox from './HstSimpleCheckbox.vue'
type Booleanish = boolean | 'true' | 'false'
const props = defineProps<{
modelValue?: Booleanish
modelValue?: Booleanish | null
title?: string
}>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import HstWrapper from '../HstWrapper.vue'
const props = defineProps<{
title?: string
modelValue?: string
modelValue?: string | null
}>()
const emit = defineEmits({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import HstWrapper from '../HstWrapper.vue'
const props = defineProps<{
title?: string
modelValue?: number
modelValue?: number | null
}>()
const emit = defineEmits({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type { HstControlOption } from '../../types'
const props = defineProps<{
title?: string
modelValue?: string
modelValue?: string | null
options: HstControlOption[]
}>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import HstWrapper from '../HstWrapper.vue'
const props = defineProps<{
title?: string
modelValue?: number
modelValue?: number | null
min: number
max: number
}>()
Expand Down
2 changes: 1 addition & 1 deletion packages/histoire-controls/src/components/text/HstText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import HstWrapper from '../HstWrapper.vue'
defineProps<{
title?: string
modelValue?: string
modelValue?: string | null
}>()
const emit = defineEmits({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import HstWrapper from '../HstWrapper.vue'
defineProps<{
title?: string
modelValue?: string
modelValue?: string | null
}>()
const emit = defineEmits({
Expand Down

0 comments on commit 3fa4604

Please sign in to comment.