Dimava
Aarktype
•Created by Dimava on 10/29/2024 in #questions
Compiling scope to interfaces
Okay will do that
But so,
How do I cast
scope({ a })
to type(a).infer
?
I guess that's the most sensible question I can ask38 replies
Aarktype
•Created by Dimava on 10/29/2024 in #questions
Compiling scope to interfaces
Can I "clean" defintions by casting them all to
type.cast<unbranded>
so they don't revalidate?38 replies
Aarktype
•Created by Dimava on 10/29/2024 in #questions
Compiling scope to interfaces
but I feel like validating them 5+ times takes time
38 replies
Aarktype
•Created by Dimava on 10/29/2024 in #questions
Compiling scope to interfaces
definitions work fine in d.ts
38 replies
Aarktype
•Created by Dimava on 10/29/2024 in #questions
Compiling scope to interfaces
tbh I do like the
g: "loose"
hack to variate the behaviour38 replies
Aarktype
•Created by Dimava on 10/29/2024 in #questions
Compiling scope to interfaces
This is what's all that is based upon
38 replies
Aarktype
•Created by Dimava on 10/29/2024 in #questions
Compiling scope to interfaces
This is way #2
38 replies
Aarktype
•Created by Dimava on 10/29/2024 in #questions
Compiling scope to interfaces
That's the way #1 and it did work fine
38 replies
Aarktype
•Created by Dimava on 10/29/2024 in #questions
Compiling scope to interfaces
I do have everything working already so I guess I should just show that to start
38 replies
Aarktype
•Created by Dimava on 10/29/2024 in #questions
Compiling scope to interfaces
You didn't get the question what's the equivalent of type(a).infer in scope({a})
38 replies
Aarktype
•Created by Dimava on 10/29/2024 in #questions
Compiling scope to interfaces
Nah I mean literally like in type example above
38 replies
Aarktype
•Created by Dimava on 10/29/2024 in #questions
Compiling scope to interfaces
How do I infer from scopes?
38 replies
Aarktype
•Created by Dimava on 10/29/2024 in #questions
Compiling scope to interfaces
Yep, but I want scopes 😭
38 replies
Aarktype
•Created by Dimava on 10/29/2024 in #questions
Compiling scope to interfaces
There may be some obvious api you have I missed
38 replies
Aarktype
•Created by Dimava on 10/29/2024 in #questions
Compiling scope to interfaces
Hmm, or now when I get to PC
38 replies
Aarktype
•Created by Dimava on 10/29/2024 in #questions
Compiling scope to interfaces
Should I ping you with some examples tomorrow?
38 replies
Aarktype
•Created by Dimava on 10/29/2024 in #questions
Compiling scope to interfaces
I'm currently slicing scope definitions to non-recursive parts
But it causes long compilation times so I'm digging how to do it efficiently
38 replies
Aarktype
•Created by Dimava on 10/29/2024 in #questions
Compiling scope to interfaces
Some of the types include whole inline scope in definition
38 replies