UNPKG
@didtools/siwx
Version:
latest (2.0.0)
next (1.0.1-next.0)
2.0.0
1.0.1-next.0
1.0.0
Typescript library for Sign-In With X
github.com/ceramicnetwork/js-did
ceramicnetwork/js-did
@didtools/siwx
/
dist
/
parsing
/
uri.d.ts
8 lines
(7 loc)
•
270 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
import
{
type
Combinator
}
from
'codeco/linear'
;
import
type
{
Opaque
}
from
'ts-essentials'
;
export
type
URIString
=
Opaque
<
string
,
'URI'
>;
/** * Parse URI by checking if string could be parsed by `new URL` */
export
declare
const
uri
:
Combinator
<
URIString
,
string
>;