次の方法で共有


ErrorCallback type

Error 結果値のみを持つコールバックを記述する型を定義します。

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