config.IconSource
An image the config names, absolute, and how to name it in an error.
Usage
Validate a configuration in an app-development tool.
This type is used by 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);Type declaration
export interface IconSource {
path: string;
/** The file and key that set it, and the path as written. */
origin: string;
}Members 2
| Name | Type | Required | Description |
|---|---|---|---|
path | string | Yes | — |
origin | string | Yes | The file and key that set it, and the path as written. |
Generated from the public TypeScript declarations: signatures, props and defaults come from the checked source, descriptions from its JSDoc. No defaults are invented.