UNPKG
@typed/io
Version:
latest (1.2.0)
1.2.0
1.1.2
1.1.1
1.1.0
1.0.0
Runtime IO type system
@typed/io
/
source
/
guard
/
Uuid.ts
7 lines
(5 loc)
•
220 B
text/typescript
View Raw
1
2
3
4
5
6
7
import
{ isUuid,
Uuid
as
UUID
}
from
'@typed/uuid'
import
{
Guard
}
from
'./Guard'
import
{ refinement }
from
'./refinement'
import
{
String
}
from
'./String'
export
const
Uuid
:
Guard
<
UUID
> =
refinement
(
String
, isUuid)