config.PlistValue
A property-list value: a string, number, boolean, an array of values, or a PlistDictionary.
Utilisation
Validate an Info.plist value supplied to a configuration tool.
Ce type est utilisé par config.plistValue
// Validate an Info.plist value supplied to a configuration tool.
import { plistValue, type PlistDictionary } from 'kuito/config';
const settings: PlistDictionary = { UIFileSharingEnabled: true };
const checked = plistValue(settings, 'ios.infoPlist', (key, message) => {
throw new Error(`${key}: ${message}`);
});
console.log(checked);Déclaration du type
export type PlistValue = string | number | boolean | PlistValue[] | PlistDictionary;Type
string | number | boolean | PlistValue[] | PlistDictionaryGénéré depuis les déclarations TypeScript publiques : signatures, props et valeurs par défaut viennent de la source vérifiée, les descriptions de sa JSDoc. Aucune valeur par défaut n'est inventée.