打字稿定义文件的相对路径不是抽象的

时间:2018-07-02 14:54:08

标签: typescript gulp typescript-definitions

在编译打字稿代码时如何避免这种相对路径解析。

定义文件:

export declare type VariableType = "array" | "object" | "boolean" | 
"number" | "string" | "gender" | "string-boolean" | "string-date" | 
"objectId" | "email" | "password";

export declare let wrong: (parent: any, child: string, type:import("../../../../../../../58BC060CBC05E57A/Users/Umber/my_node_modules/custom-validation/definitions/blocks").VariableType) => boolean;

export declare let absentWrong: (parent: any, child: string, type: import("../../../../../../../58BC060CBC05E57A/Users/Umber/my_node_modules/custom-validation/definitions/blocks").VariableType) => boolean;

export declare let optionalWrong: (parent: any, child: string, type: import("../../../../../../../58BC060CBC05E57A/Users/Umber/my_node_modules/custom-validation/definitions/blocks").VariableType) => boolean;

0 个答案:

没有答案
相关问题