FunctionResult type

return 出力が登録されていない場合は Void。それ以外の場合は、登録済みの return 出力

type FunctionResult<T> = T | Promise<T>