CodeHz
Aarktype
•Created by CodeHz on 9/12/2024 in #questions
Got syntax error in some browser
chrome 80 in android emulator, I use it as baseline
26 replies
Aarktype
•Created by CodeHz on 9/12/2024 in #questions
Got syntax error in some browser
if you selected tracked mobile for .map you will get 99.91% + 0.09% = 100%
26 replies
Aarktype
•Created by CodeHz on 9/12/2024 in #questions
Got syntax error in some browser
but it at least won't affect mobile user, they cannot upgrade the browser easily
26 replies
Aarktype
•Created by CodeHz on 9/12/2024 in #questions
Got syntax error in some browser
yes, if do a proper transpile, we need store it in a local variable to prevent eval twice
26 replies
Aarktype
•Created by CodeHz on 9/12/2024 in #questions
Got syntax error in some browser
caniuse report this feature is only valid for 93.4% of global users...
https://caniuse.com/?search=??%3D (and https://caniuse.com/?search=?.
26 replies
Aarktype
•Created by CodeHz on 9/12/2024 in #questions
Got syntax error in some browser
I will make a PR if needed
26 replies
Aarktype
•Created by CodeHz on 9/12/2024 in #questions
Got syntax error in some browser
I just patched the source code and it is working again
26 replies
Aarktype
•Created by CodeHz on 9/12/2024 in #questions
Got syntax error in some browser
So we cannot transpile it
26 replies
Aarktype
•Created by CodeHz on 9/12/2024 in #questions
Got syntax error in some browser
It is generated code in runtime by arktype
26 replies
Aarktype
•Created by CodeHz on 9/12/2024 in #questions
Got syntax error in some browser
https://github.com/arktypeio/arktype/blob/main/ark/schema/roots/alias.ts#L116 the ?. and ??= isn’t supported in some older browsers
26 replies
Aarktype
•Created by CodeHz on 8/18/2024 in #questions
How to handle checkbox in type('parse.formData').to(...)
42 replies
Aarktype
•Created by CodeHz on 8/18/2024 in #questions
How to handle checkbox in type('parse.formData').to(...)
the backend API use boolean, and I don't want to use two different types for it..
42 replies
Aarktype
•Created by CodeHz on 8/18/2024 in #questions
How to handle checkbox in type('parse.formData').to(...)
yes, I think it would be perfect
42 replies
Aarktype
•Created by CodeHz on 8/18/2024 in #questions
How to handle checkbox in type('parse.formData').to(...)
runtime error: Default values must be specified on objects like { isAdmin: 'boolean = false' }
42 replies
Aarktype
•Created by CodeHz on 8/18/2024 in #questions
How to handle checkbox in type('parse.formData').to(...)
'default?' also doen't work
42 replies
Aarktype
•Created by CodeHz on 8/18/2024 in #questions
How to handle checkbox in type('parse.formData').to(...)
42 replies
Aarktype
•Created by CodeHz on 8/18/2024 in #questions
How to handle checkbox in type('parse.formData').to(...)
arktype=2.0.0-beta.5
42 replies
Aarktype
•Created by CodeHz on 8/18/2024 in #questions
How to handle checkbox in type('parse.formData').to(...)
it just dont work
42 replies
Aarktype
•Created by CodeHz on 8/18/2024 in #questions
How to handle checkbox in type('parse.formData').to(...)
42 replies