For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /reference/sdk/node/config/functions/ensureJsonConfig.md.
  • 简体中文
  • Function: ensureJsonConfig()

    function ensureJsonConfig<T>(
       root: string, 
       name: ConfigName, 
       seed?: T): T;

    Defined in: node/config/index.ts:451

    仓顶 config JSON 的 ensure 便捷版:拼接 configPath + ensureJson。

    Type Parameters

    Type Parameter
    T

    Parameters

    ParameterType
    rootstring
    nameConfigName
    seedT

    Returns

    T