Skip to content

Commit 3a1591c

Browse files
committed
change FileHeader to just string
1 parent b2663b3 commit 3a1591c

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

TypeScript.Interface.cst

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
Type="System.String" Default="" Optional="True"
2929
Description="The type this interface extends."%>
3030
<%@ Property Category="2.Interface" Name="FileHeader"
31-
Type="CodeSmith.CustomProperties.StringCollection" Default="" Optional="True"
31+
Type="System.String" Default="" Optional="True"
3232
Description="Text to put in the begining of the file"%>
3333
<%@ Property Category="2.Interface" Name="IgnoreProperties"
3434
Type="CodeSmith.CustomProperties.StringCollection" Default="" Optional="True"
@@ -37,15 +37,11 @@
3737
Type="System.Boolean" Default="False" Optional="False"
3838
Description="Ignore properties of script type any."%>
3939
<%@ Property Category="2.Interface" Name="OptionalProperty"
40-
Type="OptionalType" Default="All" Optional="False"
40+
Type="OptionalType" Default="None" Optional="False"
4141
Description="Controls property optional syntax."%>
4242

4343
<% var scriptInterface = Generator.CreateInterface(AssemblyFile, ClassType); %>
44-
<% if (FileHeader != null) { %>
45-
<% foreach (var line in FileHeader) { %>
46-
<%= line %>
47-
<% } %>
48-
<% } %>
44+
<%= FileHeader ?? string.Empty %>
4945
module <%= ModuleName %> {
5046
"use strict";
5147

0 commit comments

Comments
 (0)