Skip to content

Interface: PrinterDiscovery

Interface for discovering available printers.

Each driver implements this for its supported transports. A unified CLI can aggregate implementations across all installed driver packages to auto-detect printers regardless of family.

Properties

PropertyModifierTypeDescription
familyreadonlystringDriver family identifier — matches DeviceEntry.family.

Methods

listPrinters()

ts
listPrinters(): Promise<DiscoveredPrinter[]>;

List connected printers on this driver's supported transports.

Returns

Promise<DiscoveredPrinter[]>


openPrinter()

ts
openPrinter(options?: OpenOptions): Promise<PrinterAdapter>;

Open a printer matching the given options.

If no options are provided, opens the first available printer.

Parameters

ParameterType
options?OpenOptions

Returns

Promise<PrinterAdapter>