示例#1
0
        public static string IntentIgnoreDecorator <T>(this TypeScriptTemplateBase <T> template)
        {
            var intentDecorators = template.GetTemplate <IntentDecoratorsTemplate>(IntentDecoratorsTemplate.TemplateId);

            template.AddImport(intentDecorators.IntentIgnore, template.GetRelativePath(intentDecorators));
            return($"@{intentDecorators.IntentIgnore}()");
        }
 public static string UseType <T>(this TypeScriptTemplateBase <T> template, string type, string location)
 {
     template.AddImport(type, location);
     return(type);
 }