UNPKG
@atproto/did
Version:
latest (0.5.0)
next (0.4.0-next.0)
rc (0.1.1-rc.1)
0.5.0
0.4.0
0.4.0-next.0
0.3.0
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.1-rc.1
0.1.1-rc.0
0.1.0
DID resolution and verification library
atproto.com
bluesky-social/atproto
@atproto/did
/
dist
/
utils.d.ts
3 lines
•
263 B
TypeScript
View Raw
1
2
3
export
type
Identifier
<D
extends
string
, I
extends
string
> =
`#
${I}
`
|
`
${D}
#
${I}
`
;
export
declare
function
matchesIdentifier<D
extends
string
, I
extends
string
>(
did
: D,
id
: I,
candidate
:
string
): candidate is
Identifier
<D, I>;
//# sourceMappingURL=utils.d.ts.map