config.PlistValue
A property-list value: a string, number, boolean, an array of values, or a PlistDictionary.
Verwendung
Validate an Info.plist value supplied to a configuration tool.
Dieser Typ wird verwendet von 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);Typdeklaration
export type PlistValue = string | number | boolean | PlistValue[] | PlistDictionary;Typ
string | number | boolean | PlistValue[] | PlistDictionaryGeneriert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.