Skip to Main Content Ideas
Created by Guest
Created on Feb 9, 2024

Support defineProps for TS in vue 3 sdk

Currently you can support standard non typed versions of defineProps, such as

defineProps(['prop1', 'prop2']) <-- supported in builder sdk

in typescript, you would define them as

defineProps<{ prop1: string, prop2: number }>() <-- not supported in builder sdk

This proposal would allow you to defineProps in TS, per the vue spec.

  • Attach files