digitalcredentials / tls-did

2 stars 0 forks source link

[Resolver] Argument of type 'null' is not assignable to type 'ParsedDID' #18

Closed KilianKae closed 3 years ago

KilianKae commented 3 years ago

image

KilianKae commented 3 years ago

This issue can either be avoided by turning strict null checks of. However we advise to use the did-resolver library which handles the parameters.

import { Resolver } from 'did-resolver';

const resolver = new Resolver({ ...tlsResolver });
const didDocument = await resolver.resolve(`did:tls:${tlsDid.domain}`);