Skip to content

Instantly share code, notes, and snippets.

View jbjorge's full-sized avatar

Joachim Bjørge jbjorge

  • Consultant at Dedica AS
  • Norge
View GitHub Profile
@jbjorge
jbjorge / props.vue
Last active March 8, 2023 12:58
Old style vue props
<script setup lang="ts">
// inferred type from `String`
const props = defineProps({
foo: String
})
// specific type
const props = defineProps({
foo: String as PropType<'foo' | 'bar'>
})