Skip to content

Commit

Permalink
Change to use dotnet tools
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Jun 13, 2020
1 parent 2bca7f2 commit 7b54534
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion MyApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "node scripts/pre-build.js && parcel watch src/_layout.html -d wwwroot",
"build": "node scripts/pre-build.js && parcel build src/_layout.html -d wwwroot",
"publish": "npm run build && dotnet publish -c Release",
"dtos": "cd src && typescript-ref",
"dtos": "cd src && x typescript",
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
Expand Down
13 changes: 8 additions & 5 deletions MyApp/src/dtos.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
/* Options:
Date: 2019-04-23 03:42:19
Version: 5.51
Date: 2020-06-13 21:14:04
Version: 5.91
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: http://localhost:5000
BaseUrl: https://localhost:5001
//GlobalNamespace:
//MakePropertiesOptional: False
//AddServiceStackTypes: True
//AddResponseStatus: False
//AddImplicitVersion:
Expand All @@ -27,16 +28,18 @@ export interface IReturnVoid

export class HelloResponse
{
public constructor(init?:Partial<HelloResponse>) { (<any>Object).assign(this, init); }
public result: string;

public constructor(init?: Partial<HelloResponse>) { (Object as any).assign(this, init); }
}

// @Route("/hello")
// @Route("/hello/{Name}")
export class Hello implements IReturn<HelloResponse>
{
public constructor(init?:Partial<Hello>) { (<any>Object).assign(this, init); }
public name: string;

public constructor(init?: Partial<Hello>) { (Object as any).assign(this, init); }
public createResponse() { return new HelloResponse(); }
public getTypeName() { return 'Hello'; }
}
Expand Down

0 comments on commit 7b54534

Please sign in to comment.