What if we have something like this?
const props = defineProps(
/**
* @param {{
* foo: boolean,
* bar: number,
* }} props
*/
(
props = {
foo: false,
bar: 0,
}
) => props
)
in typescript
const props = defineProps(
(
props: {
foo: boolean,
bar: number,
} = {
foo: false,
bar: 0,
}
) => props
)
Top comments (0)