From 8c956239ccee2af285e644c92fd6ed5b67b782c7 Mon Sep 17 00:00:00 2001 From: CodySchrank Date: Sun, 16 Feb 2020 15:07:29 -0800 Subject: [PATCH] testing map vs record. map preferable --- Example/Example.csproj | 2 +- README.md | 4 +++- Source/MTT/ConvertService.cs | 2 +- Source/MTT/MTT.csproj | 2 +- Source/MTTRunner.Tests/UnitTest.cs | 4 ++-- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Example/Example.csproj b/Example/Example.csproj index ed3c8e3..ba6747f 100755 --- a/Example/Example.csproj +++ b/Example/Example.csproj @@ -6,7 +6,7 @@ - + diff --git a/README.md b/README.md index db38bdf..9ec83ca 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ export interface Vehicle extends Entity { make: string; model: string; mileage?: number; - options: Record; + options: Map; condition: VehicleState; parts: Part[]; spareParts: Part[]; @@ -132,6 +132,8 @@ It correctly converts the following C# types to the equivalent typescript: * Optional * virtual * abstract +* Dictionary +* IDictionary ## Notes diff --git a/Source/MTT/ConvertService.cs b/Source/MTT/ConvertService.cs index 732dd7f..8ab53be 100644 --- a/Source/MTT/ConvertService.cs +++ b/Source/MTT/ConvertService.cs @@ -349,7 +349,7 @@ private void BreakDown() LineObject obj = new LineObject() { VariableName = varName, - Type = "Record", + Type = "Map", IsArray = false, IsOptional = isOptional, UserDefined = false, diff --git a/Source/MTT/MTT.csproj b/Source/MTT/MTT.csproj index f75ea27..8d7eba8 100755 --- a/Source/MTT/MTT.csproj +++ b/Source/MTT/MTT.csproj @@ -8,7 +8,7 @@ tasks - 0.6.4 + 0.6.5