How do I get interface inheritance working correctly when generating WebEssentials Typescript Intellisense?

狂风中的少年 提交于 2019-12-25 03:17:26

问题


I have two classes:

[TypeScriptModule("commands")]
public class ClientCommand : VoidCommand
{
    public string CommandType { get; set; }
}

and

[TypeScriptModule("commands")]
public class PublishEvent : ClientCommand
{
    public string Description { get; set; }
    public string AnotherProperty { get; set; }
}

When I use the WebEssentials "Create Typescript Intellisense file" command on these files, the one generated for PublishEvent doesn't include an "extends ClientCommand" expression.

A quick scan of the WebEssentials code suggests that this ought to work, but I'm obviously missing something. Any ideas what?


回答1:


Make sure you are using the latest version of WebEssentials. This feature didn't work in WebEssentials 2.0, but does work without any further changes need in version 2.3



来源:https://stackoverflow.com/questions/25325553/how-do-i-get-interface-inheritance-working-correctly-when-generating-webessentia

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!