#4929·vueuse

BUG | `createReusableTemplate` | Not compatible with the `vue-types` library

Author: MUTTERTOOLSCreated Jul 31, 2025Updated Sep 9, 2026
Labelspending triage

Describe the bug

Type inference takes the function and its return as a prop type.

defineProps works fine

Perhaps the issue lies here.

Reproduction

https://playground.vueuse.org/#eNqVkk1z0zAQhv/K4kviwR9lYDgEJxMoPcABOqE3zMG1N6laWRKSbNLJ+L+zlmyTMJBpLx5L++7us6v3ELxXKmkbDBZBZkrNlAWDtlHAC7Fb5oE1ebDKBauV1BYOUGosLG6wMcUtxxusFaczdLDVsobZmko1BtNSapy9O8ortC4eIxBNfYs6gm0jyimJcmL7qNDMcpGLUgpj4ftH3DIxNYigbzkdf8DyPyTzQy4AlJbKLMD9A3Bm7MITZB5gNQ8TZjb4s2Eaq8jLmKhwvxgQSVDhdh6/CoeoFJeclQ8Lh57NT8QhLFfQSlZRXSfv6NuFNP84jgMiaKpJU133J0/6JLZzZM/g6sIeKEv9O9Or0sEOe6MTQHa6dGhjw6UlFxwcZ+RBorEndM4b/XayF3EM/RsCai01xPEYqFgL67KXU50h0VOGlD2WylLSeYb0FMJh+jpDyQpr6ZX+LkuPhgiiwHsurguV3BspyNlu0/kQIENPzsiDyXv9bR7cWUvGSdOyEpRcIWetTgTaVKg6nbTrt8lFcpG+RFPngXtvWi51toZee8t2f/UtZa0YR/1VWUZuOOlfcC5/fXZ3Vjc4mI1y7rB8+Mf9vdl70muNBnWLeTDFbKF3aH346tsX3NP/FKxl1XBSnwlu0Eje9Ixe9qERFWEf6RztJ7dGJnY35mpvUZhxqB50dP+w28szo//BfZ28mbbY/QaxVIgQ

System Info

"@vueuse/core": "^13.2.0"
"vue-types": "^5.1.3"
"typescript": "^5.8.3",

Used Package Manager

pnpm

Validations