[TS] Assigning named slot to a component without named slot definition in template

TestComponent.vue

<template>
  <div>Component Text</div>
</template>

<script setup lang="ts">
  import { useSlots } from 'vue'

  const slots = useSlots()
  onMounted(() => {
    console.log(slots) // { foobar: {...} }
  })
</script>

SampleComponent.vue

<template>
  <TestComponent>
    <template v-slot:foobar>
  </TestComponent>
</template>

<script setup lang="ts">
</script>

.
In example above “vscode” and “npm run build” gives following typescript error

Property 'foobar' does not exist on type '{}'

because there is no slot named “foobar” in TestComponent

I want to get named slots and use them in <script> part not <template>

how i can allow assigning named slot to a component when there is no slot with that name is defined?