Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Testing a type in pipe - arktype
a
arktype
•
14mo ago
•
7 replies
ciscoheat
Testing a type in pipe
Congratulations on the 2
.0 release
, it
's working great
!
Is it possible
/best practice to run a type inside pipe
? I
'm having this test condition
:
If string is a valid url, return URL
Else return null
If string is a valid url, return URL
Else return null
I
'm not sure of the best way to handle this scenario with morphs
? I see there
's a second parameter for
pipe.try
pipe.try
, can it be used to simplify
?
arktype
Join
This is a friendly space centered around ArkType, TypeScript's 1:1 validator (https://github.com/arktypeio/arktype)
860
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
About using a generic pipe
a
arktype / questions
8mo ago
flatMorph in a type
a
arktype / questions
13mo ago
Pipe generic types
a
arktype / questions
11mo ago
Pipe chains don't work in rc13
a
arktype / questions
2y ago