labelwriter / core/src / buildDuoTapeStream
Function: buildDuoTapeStream()
buildDuoTapeStream(
bitmap,engine,options,media):Promise<Uint8Array>
Encode a Duo tape-side job through d1-core's buildPrinterStream. Throws DuoTapeUnavailableError if d1-core isn't installed.
Mirrors the arguments the static-import call site used to pass; the media parameter is typed against the labelwriter-side narrowed LabelWriterTapeMedia so the call site doesn't need to know the shape of D1Media at runtime.
Parameters
bitmap
engine
options
copies?
number
tapeType?
number
media
LabelWriterTapeMedia | undefined
Returns
Promise<Uint8Array>