Support NodaTime data types

Issue #97 new
Phil Bolduc created an issue

This could be related to issue #71. I am using NodaTime and NodaTime.Serialization.JsonNet. My model is using a LocalDate type which gets serialized as an ISO 8601 date (yyyy-MM-dd).

[TsClass]
public class EmployeeModel
{
    public LocalDate HireDate { get; set; }
}

Expected TypeScript:

declare module Employee.Models {
    interface IEmployeeModel {
        hireDate: Date;
     }
}

If I could use something like, it would solve my issue,

[TsClass]
public class EmployeeModel
{
    [TsProperty(typeof(DateTime))]
    public LocalDate HireDate { get; set; }
}

Comments (2)

  1. Log in to comment