Bas950
Aarktype
•Created by Bas950 on 9/6/2024 in #questions
string input, number output
type('null').pipe(() => undefined)
That should work right?8 replies
Aarktype
•Created by Bas950 on 9/6/2024 in #questions
string input, number output
Is there something like this for turning null into undefined? and the other way around?
8 replies
Aarktype
•Created by Bas950 on 8/15/2023 in #questions
Validate string is URL
oh yea thanks, forgot, you just have to check if the protocol is
http:
or https:
27 replies
Aarktype
•Created by Bas950 on 8/15/2023 in #questions
Validate string is URL
For now I will use:
27 replies
Aarktype
•Created by Bas950 on 8/15/2023 in #questions
Validate string is URL
hmmm, okay thanks.
Never used those morphs before, but that should work I guess, thanks.
Might be nice if @ssalbdivad can add url as a thing itself just like dates etc.
27 replies
Aarktype
•Created by Bas950 on 8/15/2023 in #questions
Validate string is URL
yea but how can I do that inside of the
type({...})
? Or is that not possible27 replies
Aarktype
•Created by Bas950 on 8/15/2023 in #questions
Validate string is URL
I mean seeing if it would parse in
new URL()
27 replies
Aarktype
•Created by Bas950 on 6/27/2023 in #questions
Key not specified in type, but no problems
Is that keys stuff not documented in the docs website tho? Or am I just looking over it?
9 replies
Aarktype
•Created by Bas950 on 6/27/2023 in #questions
Key not specified in type, but no problems
Ah thanks!
9 replies
Aarktype
•Created by Bas950 on 6/27/2023 in #questions
Key not specified in type, but no problems
I was expecting a problem like
unrecoginized key 'foo'
9 replies
Aarktype
•Created by Bas950 on 6/27/2023 in #questions
Array/Object keys to type?
Thanks both!
Will use:
5 replies