ErrorCallback type

Defines type describing callback with only Error result value.

type ErrorCallback = (error?: Error) => void