Error: sidetree/tests/generators/OperationGenerator.ts(70)
Type '{ id: string; type: string; jwk: JwkEs256k; purpose: string[]; }' is not assignable to type 'PublicKeyModel'.
Types of property 'purpose' are incompatible.
Type 'string[]' is not assignable to type 'PublicKeyPurpose[]'.
Type 'string' is not assignable to type 'PublicKeyPurpose'.
tests/core/DocumentComposer.spec.ts:15:90 - error TS2345: Argument of type '"auth"[]' is not assignable to parameter of type 'PublicKeyPurpose[]'.
Type '"auth"' is not assignable to type 'PublicKeyPurpose'.
Fixed the following errors:
Error: sidetree/tests/generators/OperationGenerator.ts(70) Type '{ id: string; type: string; jwk: JwkEs256k; purpose: string[]; }' is not assignable to type 'PublicKeyModel'. Types of property 'purpose' are incompatible. Type 'string[]' is not assignable to type 'PublicKeyPurpose[]'. Type 'string' is not assignable to type 'PublicKeyPurpose'.
tests/core/DocumentComposer.spec.ts:15:90 - error TS2345: Argument of type '"auth"[]' is not assignable to parameter of type 'PublicKeyPurpose[]'. Type '"auth"' is not assignable to type 'PublicKeyPurpose'.
15 const [authPublicKey] = await OperationGenerator.generateKeyPair('authePbulicKey', ['auth']);
59 const [authPublicKey] = await OperationGenerator.generateKeyPair('authePbulicKey', ['auth']);