以下代码在Jenkins中的Maven构建期间产生错误。
代码:
if (!value.letters) {
PA.hasDeterminationLetter(value.ticketId).then((letters=<IObjectMap<IDeterminationLetter>>{}) => {
Object.entries(letters).forEach(([k,v]) => { v.recipient = (<string> k).capitalize(); });
this.table.sv.letters = value.letters = letters || null;
});
}
詹金斯错误
error TS2322: Type 'IObjectMap<IDeterminationLetter>' is not assignable to type 'IHttpResponse<IObjectMap<IDeterminationLetter>>'.
[INFO] Property 'data' is missing in type 'IObjectMap<IDeterminationLetter>'
我试图将“data”属性添加到IDeterminationLetter,但仍然出现了相同的错误。是什么导致了这个错误?