vue-lynx / defineSlots
Function: defineSlots()
Vue <script setup> compiler macro for providing type hints to IDEs for
slot name and slot props type checking.
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
Returns
StrictUnwrapSlotsType<SlotsType<S>>
See
https://vuejs.org/api/sfc-script-setup.html#defineslots
Defined in
node_modules/.pnpm/@vue+runtime-core@3.6.0-beta.17/node_modules/@vue/runtime-core/dist/runtime-core.d.ts:278