mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-02-02 05:08:01 +01:00
update types
This commit is contained in:
14
playground/app.vue
Normal file
14
playground/app.vue
Normal file
@@ -0,0 +1,14 @@
|
||||
<script setup lang="ts">
|
||||
const { data, error } = await useTrpcQuery('getUser', {
|
||||
name: 'john',
|
||||
})
|
||||
|
||||
watchEffect(() => {
|
||||
console.log(data.value)
|
||||
console.log('err', error.value)
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>hello</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user