Utilisation

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

Ce type est utilisé par 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);

Déclaration du type

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

Type

ts
string | number | boolean | PlistValue[] | PlistDictionary
Gé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.