You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Like TypeScript's if statement, v-if, v-else-if and v-else should narrow union types which are used in their conditions.
<template>
<pv-if="!messages">Loading...</p>
<divv-else> <!-- messages should be narrowed to string[] here -->
<pv-for="m in messages":key="m">
{{ m }}
</p>
</div>
</template>
<script lang="ts">
importVuefrom'vue'exportdefaultVue.extend({ data() {messages: nullasstring[] |null }})
</script>
The text was updated successfully, but these errors were encountered:
Like TypeScript's
if
statement,v-if
,v-else-if
andv-else
should narrow union types which are used in their conditions.The text was updated successfully, but these errors were encountered: