@@ -10,7 +10,7 @@ import type {
1010 InternalDatabase ,
1111} from "@orbitdb/core" ;
1212import type { HeliaLibp2p } from "helia" ;
13- import { NestedKey , NestedValue , PossiblyNestedValue } from "./types" ;
13+ import type { NestedKey , NestedValue , PossiblyNestedValue } from "./types" ;
1414import { flatten , isSubkey , joinKey , splitKey , toNested } from "./utils.js" ;
1515import type { Libp2p } from "libp2p" ;
1616import type { ServiceMap } from "@libp2p/interface" ;
@@ -101,7 +101,9 @@ export const NestedApi = ({ database }: { database: InternalDatabase }) => {
101101 return addOperation ( { op : "DEL" , key : joinedKey , value : null } ) ;
102102 } ;
103103
104- const get = async ( key : NestedKey ) : Promise < PossiblyNestedValue | undefined > => {
104+ const get = async (
105+ key : NestedKey ,
106+ ) : Promise < PossiblyNestedValue | undefined > => {
105107 const joinedKey = typeof key === "string" ? key : joinKey ( key ) ;
106108 const relevantKeyValues : { key : string ; value : DagCborEncodable } [ ] = [ ] ;
107109
@@ -125,7 +127,7 @@ export const NestedApi = ({ database }: { database: InternalDatabase }) => {
125127 ( object : NestedValue ) : Promise < string [ ] > ;
126128 ( key : string , object : NestedValue ) : Promise < string [ ] > ;
127129 } ;
128-
130+
129131 const putNested : PutNestedFunction = async (
130132 keyOrObject ,
131133 object ?: NestedValue | undefined ,
@@ -197,4 +199,4 @@ export const NestedApi = ({ database }: { database: InternalDatabase }) => {
197199 } ;
198200} ;
199201
200- export default Nested ;
202+ export default Nested ;
0 commit comments