Class
PathedTarget
A special target for writing multi-file media where each file is uniquely identified by a path.
Used by
Type parameters
ts
PathedTarget<
T extends Target,
>See Target.
Constructor
ts
constructor(
rootPath: FilePath,
getTarget: (request: TargetRequest) => MaybePromise<T>,
): PathedTarget;Creates a new PathedTarget from a root path and a callback.
See FilePath, TargetRequest, and MaybePromise.
Properties
getTarget
ts
readonly getTarget: (request: TargetRequest) => MaybePromise<T>;See TargetRequest and MaybePromise.
rootPath
ts
readonly rootPath: FilePath;The path that points to the root file; the entry file of the media.
See FilePath.