frhagn / Typewriter

Automatic TypeScript template generation from C# source files
http://frhagn.github.io/Typewriter
Apache License 2.0
536 stars 132 forks source link

Custom methods not triggered when having File as a parameter #325

Open adamsosinski opened 4 years ago

adamsosinski commented 4 years ago

I'm using a .Net Standard 2.0 Class Library where I have a .tst template for generating .ts files based on classes with DTOClass attribute. I have created a method that has a File as a parameter, yet it is not triggered and just rendered as-is. Please find the below example.

template

${
/// ...
    string PrintDebug(File f){
        return f.FullName;
    }
/// ...
}
$PrintDebug

produce

$PrintDebug

Is there some configuration that I'm missing or something else is the issue? I will appreciate any help on this.