@kaguyajs/trss-yunzai-types
    Preparing search index...

    Interface ConfigInfo<T>

    interface ConfigInfo<T extends Record<string, any> = Record<string, any>> {
        getConfigData?: () => T | Promise<T>;
        schemas?: Schemas<T>;
        setConfigData?: (
            data: PathRecord<T> & { [k: string]: any },
            param: { Result: typeof Result },
        ) => Result<any> | Promise<Result<any>>;
    }

    Type Parameters

    • T extends Record<string, any> = Record<string, any>
    Index

    Properties

    getConfigData?: () => T | Promise<T>

    获取配置数据方法

    用于前端填充显示数据

    schemas?: Schemas<T>

    配置项

    setConfigData?: (
        data: PathRecord<T> & { [k: string]: any },
        param: { Result: typeof Result },
    ) => Result<any> | Promise<Result<any>>

    保存配置数据方法(用于前端提交保存)

    Type Declaration

      • (
            data: PathRecord<T> & { [k: string]: any },
            param: { Result: typeof Result },
        ): Result<any> | Promise<Result<any>>
      • Parameters

        • data: PathRecord<T> & { [k: string]: any }

          数据

        • param: { Result: typeof Result }

          参数

          • Result: typeof Result

            返回结果

        Returns Result<any> | Promise<Result<any>>