hypertune
Version:
[Hypertune](https://www.hypertune.com/) is the most flexible platform for feature flags, A/B testing, analytics and app configuration. Built with full end-to-end type-safety, Git-style version control and local, synchronous, in-memory flag evaluation. Opt
13 lines • 652 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = getInlineFragment;
const nullThrows_1 = __importDefault(require("./nullThrows"));
function getInlineFragment(fragmentDefinitions, fragment) {
return fragment.type === "InlineFragment"
? fragment
: (0, nullThrows_1.default)(fragmentDefinitions[fragment.fragmentName], `Missing fragment definition for fragment with name: "${fragment.fragmentName}".`);
}
//# sourceMappingURL=getInlineFragment.js.map