Skip to content

Commit

Permalink
Use typescript generic for model type
Browse files Browse the repository at this point in the history
  • Loading branch information
wkramer committed Apr 22, 2024
1 parent 61b3a6e commit f928967
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/wms/AnimatedRasterLayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ interface Props {
}
const props = withDefaults(defineProps<Props>(), {})
const isLoading = defineModel('isLoading', { type: Boolean, default: false })
const isLoading = defineModel<boolean>('isLoading', { default: false })
const emit = defineEmits(['doubleclick'])
Expand Down
2 changes: 1 addition & 1 deletion src/components/wms/AnimatedStreamlineRasterLayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface Props {
streamlineOptions?: StreamlineLayerOptionsFews
}
const props = defineProps<Props>()
const isLoading = defineModel('isLoading', { type: Boolean, default: false })
const isLoading = defineModel<boolean>('isLoading', { default: false })
const emit = defineEmits(['doubleclick'])
const { map } = useMap()
Expand Down

0 comments on commit f928967

Please sign in to comment.