vuejs / composition-api-rfc

Vuepress render for the Composition API RFC
https://vue-composition-api-rfc.netlify.com
104 stars 37 forks source link

fix: typing for readonly computed getter #7

Closed pikax closed 4 years ago

pikax commented 4 years ago

make ref to be readonly

// read-only
function computed<T>(getter: () => T): Readonly<Ref<Readonly<T>>>
vue-bot commented 4 years ago

Hey @pikax, thank you for your time and effort spent on this PR, contributions like yours help make Vue better for everyone. Cheers! 💚