Skip to content
Type

TargetEvents

The events emitted by a Target.

ts
type TargetEvents = {
	write: {
		start: number;
		end: number;
	};
	finalized: void;
};

Properties

write

ts
write: {
	/** The start of the written range, inclusive. */
	start: number;
	/** The end of the written range, exclusive. */
	end: number;
};

Emitted each time data is written to the target.

finalized

ts
finalized: void;

Emitted when the target is finalized.

Released under the Mozilla Public License 2.0.