Skip to content

BlockSuite API Documentation / @blocksuite/blocks / ZipTransformer

Variable: ZipTransformer

const ZipTransformer: object

Type declaration

exportDocs()

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

Parameters

collection

DocCollection

docs

Doc[]

Returns

Promise<void>

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:120