Generic type definition of null | undefined gets removed during Vite build #12707
Unanswered
jousi592
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I cant figure out, why when I run
vite build
, does my generic component<script setup lang="ts" generic="V extends string | number | null | undefined">
loose itsnull | undefined
types and gets transformed after build todeclare const _default: <V extends string | number>
.I need the null and undefined types to persist, but cant figure out how to achieve this, any ideas? 🙏
Beta Was this translation helpful? Give feedback.
All reactions