我目前正在使用 JSDoc 将项目从 TypeScript 转换为 JavaScript。我正在尝试使用 JSDoc 执行以下操作:
declare global {
namespace jest {
interface Matchers<R> {
toBeTheSameAsRemote: (expected: string) => CustomMatcherResult;
}
}
}
到目前为止我已经想出了这个:
/**
* @namespace jest
*/
/**
* @interface Matchers
* @memberof jest
*/
中的例子https://jsdoc.app/tags-interface.html https://jsdoc.app/tags-interface.html不幸的是没有帮助。
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)