UNPKG

@smontero/ppp-common

Version:

Contains classes that are used by both the server and client apis

18 lines (17 loc) 508 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _default = { BASE_ONLY: 'BASE_ONLY', APP_ONLY: 'APP_ONLY', BASE_AND_APP: 'BASE_AND_APP', get: function get(fetchType, defaultValue) { return this.isValid(fetchType) ? fetchType : defaultValue; }, isValid: function isValid(fetchType) { return fetchType === this.APP_ONLY || fetchType === this.BASE_ONLY || fetchType === this.BASE_AND_APP; } }; exports["default"] = _default;