Verwendung

Validate an Info.plist value supplied to a configuration tool.

Dieser Typ wird verwendet von config.plistValue

tsx
// 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

ts
export type PlistValue = string | number | boolean | PlistValue[] | PlistDictionary;

Typ

ts
string | number | boolean | PlistValue[] | PlistDictionary
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.