VueJS 2.5 is out, and I was waiting for TypeScript enhancements, but after upgrading required dependencies, I really can't see any enhancements.
From what i've read this should display a type error, because msg is a number
<template>
<div>
<h1>{{ msg }}</h1>
</div>
</template>
<script lang="ts">
export default {
data: function () {
return {
msg: 1
}
},
methods: {
test: function (): number {
return this.msg.indexOf('App')
}
}
}
</script>
But it actually gives no error, exactly like in previous version. Any clue ? Where are the new TypeScript features ?