forked from snys98/TypeScriptDefinitionGenerator
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Installed product versions
- Visual Studio: 2019 Professional
- This extension: 1.2.38
- Options override: none
Description
When I generate a new .d.ts file, the lists of non-primitive objects are parsed as "any", even with the Class definition inside the same file
Steps to recreate
- Create a class file with inside two classes: TodoItem and TodoList.
- Make TodoList a class with inside a list of TodoItems, like this:
public class TodoItemVM
{
public string Id { get; set; }
public string Name { get; set; }
public boolean Done{ get; set; }
}
public class TodoListVM
{
public TodoListVM()
{
TodoItems = new List<TodoItemVM>();
}
List<TodoItemVM> TodoItems { get; set; }
}
- Generate the .d.ts file.
Current behavior
The generation will not mantain the "TodoItemVM" type for the generated "TodoItems" array and it will become "any"
Expected behavior
I would like to mantain that type, it would be much practical in the moment I'll need to use that list.
Thanks.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels