Skip to content

BlockSuite API Documentation / @blocksuite/blocks / ZipTransformer

Variable: ZipTransformer

const ZipTransformer: object

Type declaration

exportDocs()

exportDocs: (collection, docs) => Promise<Blob>

Parameters

collection: DocCollection

docs: Doc[]

Returns

Promise<Blob>

importDocs()

importDocs: (collection, imported) => Promise<(undefined | Doc)[]>

Parameters

collection: DocCollection

imported: Blob

Returns

Promise<(undefined | Doc)[]>

Defined in

packages/blocks/src/_common/transformers/zip.ts:144