NoErrorCallback type

Defines type describing callback with one non-error result value.

type NoErrorCallback<TResult> = (result?: TResult) => void