Skip to content

Commit

Permalink
Output from running the generator app added to web project.
Browse files Browse the repository at this point in the history
  • Loading branch information
slovely committed Nov 5, 2014
1 parent 545d6dd commit 4ec67d2
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,5 @@ UpgradeLog*.htm

# Microsoft Fakes
FakesAssemblies/
src/TypeScriptSample.Web/App/**/*.js
src/TypeScriptSample.Web/App/**/*.js.map
8 changes: 8 additions & 0 deletions src/TypeScriptSample.Web/App/server/classes.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

declare module TypeScriptSample.Models {
interface Person {
Name: string;
DateOfBirth: Date;
MaritalStatus: TypeScriptSample.Models.MaritalStatus;
}
}
9 changes: 9 additions & 0 deletions src/TypeScriptSample.Web/App/server/enums.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module TypeScriptSample.Models {
export enum MaritalStatus {
Single = 0,
Married = 1,
Divorced = 2,
Separated = 3,
CommonLaw = 4
}
}
2 changes: 2 additions & 0 deletions src/TypeScriptSample.Web/TypeScriptSample.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,8 @@
</ItemGroup>
<ItemGroup>
<TypeScriptCompile Include="App\app.ts" />
<TypeScriptCompile Include="App\server\classes.d.ts" />
<TypeScriptCompile Include="App\server\enums.ts" />
<TypeScriptCompile Include="Scripts\Typings\chartjs\chart.d.ts" />
<TypeScriptCompile Include="Scripts\Typings\durandal\durandal.d.ts" />
<TypeScriptCompile Include="Scripts\Typings\googlemaps\google.maps.d.ts" />
Expand Down

0 comments on commit 4ec67d2

Please sign in to comment.