ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Is there a better way to write this? - arktype
a
arktype
โข
13mo ago
โข
123 replies
schmime
Is there a better way to write this?
import
{ type
} from
"arktype
"
;
export const nonEmptyStringOrNull
= type
(
"string
| null
| undefined
"
)
.pipe
(s
=
>
!s
? null
: s
)
;
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
Is there a better way to do '.or' ?
a
arktype / questions
14mo ago
Is there a way to "deep" require a type?
a
arktype / questions
12mo ago
Is there a way to attach custom metadata to types?
a
arktype / questions
9mo ago
Is There a Way to Avoid an Annotation Here
a
arktype / questions
3mo ago
Next page