Skip to content
Type

OutputEvents

Describes the events that an Output emits, with each key being an event name and its value being the event data.

ts
type OutputEvents = {
	target: {
		target: Target;
		request: TargetRequest | null;
		isRoot: boolean;
	};
};

See Target and TargetRequest.

Properties

target

ts
target: {
	/** The target that was obtained. */
	target: Target;
	/** The request that led to the target being obtained, or `null` if the output is not pathed. */
	request: TargetRequest | null;
	/** Whether the target is the root file of the media. */
	isRoot: boolean;
};

Emitted whenever a Target is obtained by the output. Useful to track writes.

See Target and TargetRequest.

Released under the Mozilla Public License 2.0.