UNPKG

@lark-project/cli

Version:

飞书项目插件开发工具

13 lines (12 loc) 549 B
import { ConfigKey } from '../../types'; declare class ConfigBase { get path(): string; run: (action: string, key: string, value: string) => Promise<any>; writeConfig(path: string, key: string, value: unknown): Promise<void>; isValid(key: ConfigKey, value: unknown): boolean; get: <T = string>(key: ConfigKey, needPrint?: boolean) => T; list: (needPrint?: boolean) => Promise<void>; set: <T = string>(key: ConfigKey, value: T) => Promise<void>; remove: (key: ConfigKey) => Promise<void>; } export default ConfigBase;