config.PlistValue
A property-list value: a string, number, boolean, an array of values, or a PlistDictionary.
Usage
Validate an Info.plist value supplied to a configuration tool.
This type is used by 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);Type declaration
export type PlistValue = string | number | boolean | PlistValue[] | PlistDictionary;Type
string | number | boolean | PlistValue[] | PlistDictionaryGenerated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.