Verwendung

Validate a configuration in an app-development tool.

tsx
// Validate a configuration in an app-development tool.
import { resolveConfig, SETTING_DEFAULTS, IOS_BACKGROUND_MODES } from 'kuito/config';

const config = resolveConfig(
  {
    name: 'Notes',
    ios: { bundleIdentifier: 'com.example.notes' },
    android: { applicationId: 'com.example.notes' },
    environments: { staging: { idSuffix: '.staging' } },
  },
  '/project/kuito.config.ts',
  'staging',
);
console.log(config.ios.bundleIdentifier, config.splash, config.icon);
console.log(SETTING_DEFAULTS.minSdk, IOS_BACKGROUND_MODES);

Eigenschaften und Methoden 12

NameTypErforderlichBeschreibung
0"audio"Ja—
Standard: [ 'audio', 'location', 'voip', 'fetch', 'remote-notification', 'processing', 'external-accessory', 'bluetooth-central', 'bluetooth-peripheral', 'nearby-interaction', 'push-to-talk', ] as const
1"location"Ja—
Standard: [ 'audio', 'location', 'voip', 'fetch', 'remote-notification', 'processing', 'external-accessory', 'bluetooth-central', 'bluetooth-peripheral', 'nearby-interaction', 'push-to-talk', ] as const
2"voip"Ja—
Standard: [ 'audio', 'location', 'voip', 'fetch', 'remote-notification', 'processing', 'external-accessory', 'bluetooth-central', 'bluetooth-peripheral', 'nearby-interaction', 'push-to-talk', ] as const
3"fetch"Ja—
Standard: [ 'audio', 'location', 'voip', 'fetch', 'remote-notification', 'processing', 'external-accessory', 'bluetooth-central', 'bluetooth-peripheral', 'nearby-interaction', 'push-to-talk', ] as const
4"remote-notification"Ja—
Standard: [ 'audio', 'location', 'voip', 'fetch', 'remote-notification', 'processing', 'external-accessory', 'bluetooth-central', 'bluetooth-peripheral', 'nearby-interaction', 'push-to-talk', ] as const
5"processing"Ja—
Standard: [ 'audio', 'location', 'voip', 'fetch', 'remote-notification', 'processing', 'external-accessory', 'bluetooth-central', 'bluetooth-peripheral', 'nearby-interaction', 'push-to-talk', ] as const
6"external-accessory"Ja—
Standard: [ 'audio', 'location', 'voip', 'fetch', 'remote-notification', 'processing', 'external-accessory', 'bluetooth-central', 'bluetooth-peripheral', 'nearby-interaction', 'push-to-talk', ] as const
7"bluetooth-central"Ja—
Standard: [ 'audio', 'location', 'voip', 'fetch', 'remote-notification', 'processing', 'external-accessory', 'bluetooth-central', 'bluetooth-peripheral', 'nearby-interaction', 'push-to-talk', ] as const
8"bluetooth-peripheral"Ja—
Standard: [ 'audio', 'location', 'voip', 'fetch', 'remote-notification', 'processing', 'external-accessory', 'bluetooth-central', 'bluetooth-peripheral', 'nearby-interaction', 'push-to-talk', ] as const
9"nearby-interaction"Ja—
Standard: [ 'audio', 'location', 'voip', 'fetch', 'remote-notification', 'processing', 'external-accessory', 'bluetooth-central', 'bluetooth-peripheral', 'nearby-interaction', 'push-to-talk', ] as const
10"push-to-talk"Ja—
Standard: [ 'audio', 'location', 'voip', 'fetch', 'remote-notification', 'processing', 'external-accessory', 'bluetooth-central', 'bluetooth-peripheral', 'nearby-interaction', 'push-to-talk', ] as const
length11Ja—
Standard: [ 'audio', 'location', 'voip', 'fetch', 'remote-notification', 'processing', 'external-accessory', 'bluetooth-central', 'bluetooth-peripheral', 'nearby-interaction', 'push-to-talk', ] as const
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.