小编yon*_*eal的帖子

扩展打字稿变量声明

我想在我的 Typescript 项目中使用nconf-yaml插件,但我不知道如何将其添加到我的打字中。在@types/nconf中,formats变量声明如下:

export declare var formats: {
    json: IFormat;
    ini: IFormat;
};
Run Code Online (Sandbox Code Playgroud)

如何使用声明合并添加yaml,使其变为:

export declare var formats: {
    json: IFormat;
    ini: IFormat;
    yaml: IFormat
};
Run Code Online (Sandbox Code Playgroud)

typescript nconf typescript-typings

3
推荐指数
1
解决办法
2151
查看次数

标签 统计

nconf ×1

typescript ×1

typescript-typings ×1