NoErrorCallback type

定義以一個非錯誤結果值描述回呼的類型。

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