transmute-industries / did-key.js

A DID Key Implementation in TypeScript
https://did.key.transmute.industries/
Apache License 2.0
53 stars 15 forks source link

Typescript issues, have to turn of skipLibCheck #215

Open vongohren opened 2 years ago

vongohren commented 2 years ago
$ rimraf dist/ && tsc
node_modules/@transmute/did-key-ed25519/dist/index.d.ts:4:65 - error TS2694: Namespace '"node_modules/@transmute/did-key-ed25519/node_modules/@transmute/did-key-common/dist/types/index"' has no exported member 'DidDocument'.

4     didDocument: import("@transmute/did-key-common/dist/types").DidDocument;
                                                                  ~~~~~~~~~~~

node_modules/@transmute/did-key-ed25519/dist/index.d.ts:7:102 - error TS2694: Namespace '"node_modules/@transmute/did-key-ed25519/node_modules/@transmute/did-key-common/dist/types/index"' has no exported member 'ResolutionOptions'.

7 export declare const resolve: (did: string, options?: import("@transmute/did-key-common/dist/types").ResolutionOptions | undefined) => Promise<import("@transmute/did-key-common/dist/types").ResolutionResponse>;
                                                                                                       ~~~~~~~~~~~~~~~~~

node_modules/@transmute/did-key-ed25519/dist/index.d.ts:7:191 - error TS2694: Namespace '"node_modules/@transmute/did-key-ed25519/node_modules/@transmute/did-key-common/dist/types/index"' has no exported member 'ResolutionResponse'.

7 export declare const resolve: (did: string, options?: import("@transmute/did-key-common/dist/types").ResolutionOptions | undefined) => Promise<import("@transmute/did-key-common/dist/types").ResolutionResponse>;

Im getting these nested TS errors. Currently using 0.7.0-unstable.51 and these libs


    "@transmute/credentials-context": "0.7.0-unstable.51",
    "@transmute/ed25519-signature-2018": "0.7.0-unstable.51",
    "@transmute/json-web-signature": "^0.7.0-unstable.51",
    "@transmute/vc.js": "^0.7.0-unstable.51",