config.SplashConfig
The splash setting checked, with defaults applied: one SplashLook and each variant as its own SplashLook.
Utilisation
Validate a configuration in an app-development tool.
Ce type est utilisé par config.resolveConfig
// 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);Déclaration du type
export interface SplashConfig extends SplashLook {
/** Each variant: the splash with its own keys replaced. */
variants: Record<string, SplashLook>;
}Membres 6
| Nom | Type | Requis | Description |
|---|---|---|---|
variants | Record<string, SplashLook> | Oui | Each variant: the splash with its own keys replaced. |
logo | IconSource | Oui | — |
logoWidth | number | Oui | — |
background | string | Oui | #RRGGBB. |
brand | IconSource | Oui | — |
dark | { logo: IconSource | null; background: string | null; brand: IconSource | null;} | Oui | — |
dark — champs imbriqués
dark champs
| Nom | Type | Requis | Description |
|---|---|---|---|
logo | IconSource | Oui | — |
background | string | Oui | — |
brand | IconSource | Oui | — |
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.