SynthLuvr
Aarktype
•Created by SynthLuvr on 9/6/2024 in #questions
Type instantiation is excessively deep and possibly infinite
What would be cool is if we could do
type("bigint>0n")
52 replies
Aarktype
•Created by SynthLuvr on 9/6/2024 in #questions
Type instantiation is excessively deep and possibly infinite
I'm pretty sure it worked in the past but I don't know when
52 replies
Aarktype
•Created by SynthLuvr on 9/2/2024 in #questions
Type instantiation is excessively deep and possibly infinite
For my purposes, I was able to create a workaround:
18 replies
Aarktype
•Created by SynthLuvr on 9/2/2024 in #questions
Type instantiation is excessively deep and possibly infinite
18 replies
Aarktype
•Created by SynthLuvr on 9/2/2024 in #questions
Type instantiation is excessively deep and possibly infinite
For example:
18 replies
Aarktype
•Created by SynthLuvr on 9/2/2024 in #questions
Type instantiation is excessively deep and possibly infinite
grr yeah so now I need to know the type ahead of the call so I can set the correct generic
18 replies
Aarktype
•Created by SynthLuvr on 9/2/2024 in #questions
Type instantiation is excessively deep and possibly infinite
So that's causing me a ton of problems
18 replies
Aarktype
•Created by SynthLuvr on 9/2/2024 in #questions
Type instantiation is excessively deep and possibly infinite
It now seems to be infering as
Type.Any
for the generic parameter18 replies
Aarktype
•Created by SynthLuvr on 9/2/2024 in #questions
Type instantiation is excessively deep and possibly infinite
18 replies
Aarktype
•Created by SynthLuvr on 9/2/2024 in #questions
Type instantiation is excessively deep and possibly infinite
This isn't working for my use case unfortunately
18 replies
Aarktype
•Created by SynthLuvr on 9/2/2024 in #questions
Compiling to JavaScript results in `any` type
To reproduce:
3 replies
Aarktype
•Created by SynthLuvr on 9/2/2024 in #questions
Type instantiation is excessively deep and possibly infinite
Ok I'll try
18 replies
Aarktype
•Created by SynthLuvr on 9/2/2024 in #questions
Was `any` removed?
replacing
any
with unknown
does work15 replies
Aarktype
•Created by SynthLuvr on 9/2/2024 in #questions
Was `any` removed?
like
type(["number", "string", "any", "number"])
etc.15 replies
Aarktype
•Created by SynthLuvr on 9/2/2024 in #questions
Was `any` removed?
Mostly I would use this when I'm expecting a certain sized tuple and know/care about some of the properties
15 replies
Aarktype
•Created by SynthLuvr on 9/2/2024 in #questions
Was `any` removed?
I could cast it, it's not a big deal, but wondering
15 replies
Aarktype
•Created by SynthLuvr on 9/2/2024 in #questions
Was `any` removed?
unknown
works but it's fundamentally different15 replies
Aarktype
•Created by SynthLuvr on 8/6/2024 in #questions
ArkType mutates original input?
Well this blew up. I understand the reasoning for mutation and I'm in agreement. It just needs to be documented. I've been using ArkType for a long time and I never considered it mutated the original object. If it was made clear, there wouldn't be an issue
74 replies