SneakyTurtle
Aarktype
•Created by SneakyTurtle on 6/4/2024 in #questions
Wrapper around `type()`
Yeah, I get a tooltip telling me that its a bad idea at the very least!
88 replies
Aarktype
•Created by SneakyTurtle on 6/4/2024 in #questions
Wrapper around `type()`
scratch that seems to have been a weird state that got trapped in the TS language server; went away after a restart
88 replies
Aarktype
•Created by SneakyTurtle on 6/4/2024 in #questions
Wrapper around `type()`
Hmmm, so I thought I had this sorted, but came back to it today and found that just changing to
nodenext
didn't solve it for me; here's the fully resolved tsconfig for reference, hoping that maybe you can spot something else that isn't playing nicely 🤞
88 replies
Aarktype
•Created by SneakyTurtle on 6/4/2024 in #questions
Wrapper around `type()`
I suspect that may have also caused some issues with remix and shacdn now that I think of it
88 replies
Aarktype
•Created by SneakyTurtle on 6/4/2024 in #questions
Wrapper around `type()`
and that fixed it
88 replies
Aarktype
•Created by SneakyTurtle on 6/4/2024 in #questions
Wrapper around `type()`
thanks for the pointer
88 replies
Aarktype
•Created by SneakyTurtle on 6/4/2024 in #questions
Wrapper around `type()`
Yeah, that's very valid
88 replies
Aarktype
•Created by SneakyTurtle on 6/4/2024 in #questions
Wrapper around `type()`
this is in an Nx monorepo, so tsconfigs are a bit of a wormhole
88 replies
Aarktype
•Created by SneakyTurtle on 6/4/2024 in #questions
Wrapper around `type()`
module resolution is
node
88 replies
Aarktype
•Created by SneakyTurtle on 6/4/2024 in #questions
Wrapper around `type()`
this is using pure arktype, not my wrapper
88 replies
Aarktype
•Created by SneakyTurtle on 6/4/2024 in #questions
Wrapper around `type()`
I'm getting
Type '"string.url"' is not assignable to type '"'string' must reference a module to be accessed using dot syntax "'
88 replies
Aarktype
•Created by SneakyTurtle on 6/4/2024 in #questions
Wrapper around `type()`
Ok, odd question here, this should work, right?
88 replies
Aarktype
•Created by SneakyTurtle on 6/4/2024 in #questions
Wrapper around `type()`
Yeah totally; I appreciate the immense effort that clearly went into the docs up to this point
88 replies
Aarktype
•Created by SneakyTurtle on 6/4/2024 in #questions
Wrapper around `type()`
Thanks again for the great work on this library, I'm finally getting some of my coworkers turned onto it after months, which is fun to see
88 replies
Aarktype
•Created by SneakyTurtle on 6/4/2024 in #questions
Wrapper around `type()`
Yeah, casting the return is probably fine
88 replies
Aarktype
•Created by SneakyTurtle on 6/4/2024 in #questions
Wrapper around `type()`
Ok, that combined with the internal/external definition seems like a good strategy
88 replies
Aarktype
•Created by SneakyTurtle on 6/4/2024 in #questions
Wrapper around `type()`
Oh, so I should use
type.raw
instead of type()
88 replies
Aarktype
•Created by SneakyTurtle on 6/4/2024 in #questions
Wrapper around `type()`
awesome; looks like this works for me, do I have it right?
88 replies
Aarktype
•Created by SneakyTurtle on 6/4/2024 in #questions
Wrapper around `type()`
Yeah was wondering about that; should I be able to do all of this without touching
@arktype/schema
?88 replies