refactor: update ComposeCanvas and Editor data handling types

This commit is contained in:
ramvignesh-b
2026-04-14 13:10:18 +05:30
parent bc29306fe2
commit 8f9c0b5430
4 changed files with 41 additions and 12 deletions
+3 -3
View File
@@ -213,7 +213,7 @@ export class CryptoUtils {
}
public async encryptMetadata(
metadata: Record<string, unknown>,
metadata: Record<string, any>,
masterKey: CryptoKey,
): Promise<EncryptedLetter> {
const { encryptedContent, encrypted_dek, sharingKey } =
@@ -227,7 +227,7 @@ export class CryptoUtils {
public async decryptMetadata(
encrypted_metadata: EncryptedLetter,
masterKey: CryptoKey,
): Promise<Record<string, unknown>> {
): Promise<Record<string, any>> {
const bytes = await this.openEnvelope(
encrypted_metadata.encrypted_content,
encrypted_metadata.encrypted_dek,
@@ -239,7 +239,7 @@ export class CryptoUtils {
public async decryptMetadataWithSharingKey(
encrypted_content: string,
sharingKey: string,
): Promise<Record<string, unknown>> {
): Promise<Record<string, any>> {
const bytes = await this.openEnvelopeWithSharingKey(
encrypted_content,
sharingKey,