UNPKG

@bytedance/mona

Version:

Merchant app's developing and building tools

53 lines (52 loc) 1.55 kB
interface AppConfigWindow { navigationBarBackgroundColor?: string; navigationBarTextStyle?: 'black' | 'white'; navigationBarTitleText?: string; navigationStyle?: 'default' | 'custom'; backgroundColor?: string; backgroundTextStyle?: 'dark' | 'light'; backgroundColorTop?: string; backgroundColorBottom?: string; enablePullDownRefresh?: boolean; onReachBottomDistance?: number; transparentTitle?: 'none' | 'always' | 'auto'; } interface AppConfigTabBarItem { pagePath: string; text: string; iconPath?: string; selectedIconPath?: string; } interface AppConfigTabBar { color: string; selectedColor: string; backgroundColor: string; borderStyle?: 'black' | 'white'; list: AppConfigTabBarItem[]; } type PermissionNames = 'scope.userLocation' | 'scope.address' | 'scope.record' | 'scope.album' | 'scope.camera'; type AppConfigTabBarPermission = { [key in PermissionNames]: { desc?: string; }; }; interface AppConfigNetworkTimeout { request?: number; connectSocket?: number; uploadFile?: number; downloadFile?: number; } export interface AppConfig { pages: string[]; entryPagePath?: string; window?: AppConfigWindow; tabBar?: AppConfigTabBar; navbar?: { showFullScreenButton?: boolean; }; navigateToMiniProgramAppIdList?: string[]; permission?: AppConfigTabBarPermission; networkTimeout?: AppConfigNetworkTimeout; } export declare function createAppConfig(appConfig: AppConfig): AppConfig; export {};