FluffySpoon.JavaScript.CSharpToTypeScriptGenerator
FluffySpoon.JavaScript.CSharpToTypeScriptGenerator copied to clipboard
Multiple interface inheritance
The generator is confused if an interface itself implements multiple interfaces like in the code below
public interface IArchiveEntry : IId, IOwned
{
ArchiveEntryType Type { get; }
List<IArchiveEntry> SubEntries { get; set; }
DateTime CreatedOn { get; }
string Name { get; }
}
generates invalid typescript with multiple extends:
interface IArchiveEntry extends IId extends IOwned {
readonly type: ArchiveEntryType;
subEntries: Array<IArchiveEntry>;
readonly createdOn: string;
readonly name: string;
}
Can you make a PR? I think the parser needs to be able to support multiple interfaces.