We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb077c6 commit be1c8e3Copy full SHA for be1c8e3
src/LazyCoder/Typescript/TsType.cs
@@ -62,6 +62,14 @@ private static TsType From(Type type,
62
new TsNull());
63
}
64
65
+ foreach (var customTypeConverter in customTypeConverters)
66
+ {
67
+ if (customTypeConverter.TryConvert(type, out var tsType))
68
69
+ return tsType;
70
+ }
71
72
+
73
if (Helpers.IsEnumerable(type))
74
{
75
return new TsArrayType { ElementType = From(Helpers.UnwrapEnumerableType(type)) };
@@ -101,14 +109,6 @@ private static TsType From(Type type,
101
109
};
102
110
103
111
104
- foreach (var customTypeConverter in customTypeConverters)
105
- {
106
- if (customTypeConverter.TryConvert(type, out var tsType))
107
108
- return tsType;
- }
-
112
return FromInternal(type);
113
114
0 commit comments