UNPKG

lemon-core

Version:
29 lines (28 loc) 880 B
/** * load json in sync. */ export declare const loadJsonSync: <T extends object = any>(name: string, def?: {}) => T; /** * dynamic loading credentials by profile. (search PROFILE -> NAME) */ export declare const asyncCredentials: (profile: string) => Promise<unknown>; /** * dynamic loading credentials by profile. (search PROFILE -> NAME) */ export declare const credentials: (profile: string) => string; /** * return whether AWS credentials set */ export declare const hasCredentials: () => boolean; /** * load yml data via './data/<file>.yml' */ export declare const loadDataYml: <T extends object = any>(file: string, folder?: string) => T; interface AdaptiveParam<T> { (name: string, defval: T, argv?: string[]): T; } /** * get running parameter like -h api. */ export declare const getRunParam: AdaptiveParam<boolean | number | string | object>; export {};