From caa67f710bba7cbe545d2674affed3b824589969 Mon Sep 17 00:00:00 2001
From: Zdravko Iliev <zdravko.iliev61@gmail.com>
Date: Wed, 29 Jun 2022 14:27:26 +0300
Subject: [PATCH] change interface for ipns

---
 dist/types.d.ts | 3 ++-
 src/types.ts    | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dist/types.d.ts b/dist/types.d.ts
index ca96459..2be80a7 100644
--- a/dist/types.d.ts
+++ b/dist/types.d.ts
@@ -17,7 +17,8 @@ export interface IpfsContentData {
     head: string;
 }
 export interface IpfsDocumentContentData {
-    ipnsKeyId: string;
+    ipnsKeyId?: string;
+    cid?: string;
     key: string;
     head: string;
 }
diff --git a/src/types.ts b/src/types.ts
index cbef052..74d8917 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -21,7 +21,8 @@ export interface IpfsContentData {
 }
 
 export interface IpfsDocumentContentData {
-  ipnsKeyId: string;
+  ipnsKeyId?: string;
+  cid?: string;
   key: string;
   head: string;
 }
-- 
GitLab