vue-lynx / withDefaults
Function: withDefaults()
Vue <script setup> compiler macro for providing props default values when
using type-based defineProps declaration.
Example usage:
This is only usable inside <script setup>, is compiled away in the output
and should not be actually called at runtime.
Type Parameters
Parameters
Returns
PropsWithDefaults<T, Defaults, BKeys>
See
https://vuejs.org/guide/typescript/composition-api.html#typing-component-props
Defined in
node_modules/.pnpm/@vue+runtime-core@3.5.30/node_modules/@vue/runtime-core/dist/runtime-core.d.ts:362