mirror of
https://github.com/type-challenges/type-challenges.git
synced 2025-12-08 19:06:13 +00:00
29 lines
496 B
TypeScript
29 lines
496 B
TypeScript
|
|
import { Equal, Expect } from '@type-challenges/utils'
|
|
|
|
SimpleVue({
|
|
data() {
|
|
return {
|
|
firstname: 'Type',
|
|
lastname: 'Challenges',
|
|
amount: 10,
|
|
}
|
|
},
|
|
computed: {
|
|
fullname() {
|
|
return `${this.firstname} ${this.lastname}`
|
|
},
|
|
},
|
|
methods: {
|
|
hi() {
|
|
alert(this.fullname.toLowerCase())
|
|
},
|
|
test() {
|
|
const fullname = this.fullname
|
|
const cases: [
|
|
Expect<Equal<typeof fullname, string>>,
|
|
] = [] as any
|
|
},
|
|
},
|
|
})
|