( props: DefineProps<T, BKeys>, defaults: Defaults, )
| 399 | * @see {@link https://vuejs.org/guide/typescript/composition-api.html#typing-component-props} |
| 400 | */ |
| 401 | export function withDefaults< |
| 402 | T, |
| 403 | BKeys extends keyof T, |
| 404 | Defaults extends InferDefaults<T>, |
| 405 | >( |
| 406 | props: DefineProps<T, BKeys>, |
| 407 | defaults: Defaults, |
| 408 | ): PropsWithDefaults<T, Defaults, BKeys> { |
| 409 | if (__DEV__) { |
| 410 | warnRuntimeUsage(`withDefaults`) |
| 411 | } |
| 412 | return null as any |
| 413 | } |
| 414 | |
| 415 | export function useSlots(): SetupContext['slots'] { |
| 416 | return getContext('useSlots').slots |
no test coverage detected