Skip to content

IndexedErrorResult

Like ErrorResult but also carries an index into the collection that was being processed.

ts
interface IndexedErrorResult<TCode extends string, TDetails, TError extends IndexedMicro509Error<TCode, TDetails>> extends ErrorResult<TCode, TDetails, TError> {
	readonly index?: number;
}

Properties

  • readonly index?: number — Zero-based position of the failing item in the input collection.

Released under the MIT License.