Closed mlafeldt closed 1 year ago
Good finding, Mathias! Will investigate soon
The number of arguments can be 0-4 and the return type has to be correct, otherwise you will be getting an error.
I couldn't reproduce. Do you still experience the error? Have you tried starting a new project w/o Deno?
You could also just manually cast the types
Will be closing as it's not reproducible. Feel free to reopen, if you could give me a reproducible example
Hey, here's something I'd like to understand:
Given the following code,
InferResolversStrict
will happily acceptgetUsername
as a resolver, although its arguments are wrong. I think this is related to the fact that the first arg is supposed to beparent: any
, which checks againstid: string
. However, the number of args isn't enforced either (it should be 4 instead of 1).(I don't think it's a problem with Deno's TS compiler options as those are pretty strict by default.)
Please enlighten me. 😄