@kirz/expo-content-blocker
Version:
Apply content blocker rules to Safari
19 lines (18 loc) • 703 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.validatePluginProps = validatePluginProps;
function validatePluginProps(props) {
// check the type of each property
if (props.devTeam && typeof props.devTeam !== "string") {
throw new Error("Blocker Expo Plugin: 'devTeam' must be a string.");
}
// check for extra properties
const inputProps = Object.keys(props);
// for (const prop of inputProps) {
// if (!AUTOFILL_CREDENTIAL_PLUGIN_PROPS.includes(prop)) {
// throw new Error(
// `Blocker Expo Plugin: You have provided an invalid property "${prop}" to the Blocker plugin.`
// );
// }
// }
}