UNPKG

@daysnap/horn-jssdk

Version:

原生容器面向 H5 开发者提供的基于容器应用内的网页开发工具包

22 lines (21 loc) 847 B
import { type FailCallbackResult, type PickOptions } from '../../core'; export interface SetConfigOptions { branch: string; success?: (result: any) => void; fail?: (err: FailCallbackResult) => void; } /** * 提供给 h5 设置应用配置 */ export declare const setConfig: <T extends SetConfigOptions = SetConfigOptions>(options: T) => import("../../core").PromisifySuccessResult<PickOptions<T>, SetConfigOptions>; export interface GetConfigResult { branch: string; } export interface GetConfigOptions { success?: (result: GetConfigResult) => void; fail?: (err: FailCallbackResult) => void; } /** * 获取 h5 设置应用配置 */ export declare const getConfig: <T extends GetConfigOptions = GetConfigOptions>(options?: T | undefined) => import("../../core").PromisifySuccessResult<PickOptions<T>, GetConfigOptions>;