较长的错误类型描述

时间:2017-07-25 23:00:29

标签: typescript typescript-typings

如何在错误消息中获得更长的打字稿类型描述?

现在我收到如下错误消息:

TS2345: Argument of type '(action: TAction<TPayloadPanelIdTitle>, undoHandler: "utx-handler-standard" | "utx-handler-crop" ...' is not assignable to parameter of type 'CallEffectNamedFn<{ [x: string]: Func1<any>; }, string>'. Type '(action: TAction<TPayloadPanelIdTitle>, undoHandler: "utx-handler-standard" | "utx-handler-crop" ...' is not assignable to type '[{ [x: string]: Func1<any>; }, string]'. Property '0' is missing in type '(action: TAction<TPayloadPanelIdTitle>, undoHandler: "utx-handler-standard" | "utx-handler-crop" ...'. 椭圆形吞噬了很多信息。令人沮丧!

TypeScript版本: 2.4.1

0 个答案:

没有答案