KY-Programming / generator

Type Generator: No framework. No magic. Just code. 100% debuggable.
https://generator.ky-programming.de
MIT License
18 stars 4 forks source link

GenericType<T> of double not resolved correctly #9

Closed joachim-heck closed 4 years ago

joachim-heck commented 4 years ago

Hey Kai,

first of all: thanks for the magnificent support! I'm referring the issue you have fixed in your last update https://github.com/KY-Programming/generator/issues/8; It seems like the complex scenarios are now working like charm but in my case, its probably struggeling with some base types:

I'm reusing that generic type of #8

public class GenericType<T>
 {
     public int Value1 { get; set; }

     public T GenericValue { get; set; }

 }

but this time I'm feeding it a double-Value as Input:


public class ExportedType
{
    public GenericType<double> MyType { get; set; }
}

As a result, the GenericType class gets perfectly generated, but in the Exported type the T is not getting resolved:

import { GenericType } from "./generic-type";

export class ExportedType {
 public myType: GenericType<>;

 public constructor(init: Partial<ExportedType> = undefined) {
     Object.assign(this, init);
 }
}
ky-one commented 4 years ago

Solved. Will be part of the next release