UNPKG

@kirz/expo-content-blocker

Version:
19 lines (18 loc) 703 B
"use strict"; 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.` // ); // } // } }