UNPKG

@didtools/siwx

Version:

Typescript library for Sign-In With X

8 lines (7 loc) 270 B
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>;