AbortablePromiseBuilder type

Represents a function that returns a promise that can be aborted.

type AbortablePromiseBuilder<T> = (abortOptions: {
  abortSignal?: AbortSignalLike
}) => Promise<T>