UNPKG

512 BJavaScriptView Raw
1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT license.
3export function validateOffer(body) {
4 if (body.throughput) {
5 if (body.maxThroughput) {
6 console.log("should be erroring");
7 throw new Error("Cannot specify `throughput` with `maxThroughput`");
8 }
9 if (body.autoUpgradePolicy) {
10 throw new Error("Cannot specify autoUpgradePolicy with throughput. Use `maxThroughput` instead");
11 }
12 }
13}
14//# sourceMappingURL=offers.js.map
\No newline at end of file