config.PlistValue
A property-list value: a string, number, boolean, an array of values, or a PlistDictionary.
Utilização
Validate an Info.plist value supplied to a configuration tool.
Este tipo é usado por 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);Declaração do tipo
export type PlistValue = string | number | boolean | PlistValue[] | PlistDictionary;Tipo
string | number | boolean | PlistValue[] | PlistDictionaryGerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.