共用方式為


ErrorCallback type

定義只描述錯誤結果值的回呼類型。

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