Utilização

Validate a configuration in an app-development tool.

Este tipo é usado por config.resolveConfig

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);

Declaração do tipo

ts
export interface SplashConfig extends SplashLook {
  /** Each variant: the splash with its own keys replaced. */
  variants: Record<string, SplashLook>;
}

Membros 6

NomeTipoObrigatórioDescrição
variantsRecord<string, SplashLook>SimEach variant: the splash with its own keys replaced.
logoWidthnumberSim—
backgroundstringSim#RRGGBB.
brandIconSourceSim—
dark{ logo: IconSource | null; background: string | null; brand: IconSource | null;}Sim—
dark — campos aninhados

dark campos

NomeTipoObrigatórioDescrição
logoIconSourceSim—
backgroundstringSim—
brandIconSourceSim—
Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.