knip
Version:
Find and fix unused dependencies, exports and files in your TypeScript and JavaScript projects
29 lines (28 loc) • 822 B
TypeScript
type BaseConfig = {
platforms?: ('ios' | 'android' | 'web')[];
notification?: Record<string, unknown>;
updates?: {
enabled?: boolean;
};
backgroundColor?: string;
userInterfaceStyle?: 'automatic' | 'light' | 'dark';
ios?: {
backgroundColor?: string;
};
android?: {
userInterfaceStyle?: 'automatic' | 'light' | 'dark';
};
androidNavigationBar?: Record<string, unknown>;
plugins?: (string | [string, Record<string, unknown>])[];
};
type ConfigContext = {
projectRoot: string;
staticConfigPath: string | null;
packageJsonPath: string | null;
config: Partial<BaseConfig>;
};
type ExpoConfigOrProp = BaseConfig | {
expo: BaseConfig;
};
export type ExpoConfig = ExpoConfigOrProp | ((cfg: ConfigContext) => ExpoConfigOrProp);
export {};