Carlos Rodrigues
Carlos Rodrigues
A different take on this: https://github.com/graphql-dotnet/graphql-client/pull/111
Vue handles props differently from react, in vue a prop can have runtime validation. I have this https://github.com/vuejs/vue-next/pull/3049 PR to introduce a similar way to pass the type to props,...
We need to use classes to solve this, classes are not planned to be supported. Another way to do this (hacky overhead), would be doing something like: ```ts import {...
> For `toRefs()`, this is a bit trickier and I'd need our TS experts like @pikax to chime in. it seems that the types of `toRefs()` return `Ref | undefined`...
> Did you check the reproduction? Your reproduction code is invalid, you are assigning `ref` to a `string`. The only valid point is the `Ref | undefined` which is a...
https://github.com/vuejs/core/pull/6421 will fix that error.
@LinusBorg I believe that's typescript type narrowing, it makes sense if you think about, because the `ref` **can** be undefined, even if you check if `.value` is `undefined` nothing prevents...
> @pikax Didn't you work on a PR that made component definition types canonical to enable this kind of usage? I did, but I think is different than what's being...
When you do `.then` it will create a new promise, making the `useApi` not be aware of it. What you can do is passing the function to the exec: ```ts...
I don't think you can hook to the original promise. ```ts export function timeout(ms) { return new Promise(resolve => setTimeout(resolve, ms)); } const getItems = () => timeout(1000).then(() => [{...