Skip to content
This repository was archived by the owner on Jun 22, 2023. It is now read-only.

Commit acc3613

Browse files
committed
upgrade example dependencies, commit lockfiles (fix bcherny#134)
1 parent a4ea36b commit acc3613

File tree

5 files changed

+529
-11
lines changed

5 files changed

+529
-11
lines changed

example/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
## How to run the demo
44

55
```sh
6+
# Using Yarn:
7+
yarn
8+
yarn build
9+
10+
# Or, using NPM:
611
npm install
712
npm run build
813
```

example/package-lock.json

Lines changed: 279 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/package.json

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,19 @@
88
"build": "npm run clean && tsc && node index.js",
99
"clean": "rm -f index.js index.d.ts person.d.ts"
1010
},
11-
1211
"dependencies": {
13-
"@types/node": "^7.0.13",
14-
"typescript": "2.2.2",
15-
"json-schema-to-typescript": "3.1.4"
16-
}
17-
}
12+
"@types/node": "^8.0.58",
13+
"typescript": "2.6.2",
14+
"json-schema-to-typescript": "5.2.0"
15+
},
16+
"repository": {
17+
"type": "git",
18+
"url": "git+https://github.com/bcherny/json-schema-to-typescript.git"
19+
},
20+
"author": "Boris Cherny <[email protected]> (http://performancejs.com/)",
21+
"license": "MIT",
22+
"bugs": {
23+
"url": "https://github.com/bcherny/json-schema-to-typescript/issues"
24+
},
25+
"homepage": "https://github.com/bcherny/json-schema-to-typescript#readme"
26+
}

example/person.d.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
/**
2+
* This file was automatically generated by json-schema-to-typescript.
3+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4+
* and run json-schema-to-typescript to regenerate this file.
5+
*/
6+
17
export interface Person {
2-
"firstName": string;
3-
"lastName": string;
8+
firstName: string;
9+
lastName: string;
410
/**
511
* Age in years
612
*/
7-
"age"?: number;
8-
"hairColor"?: "black" | "brown" | "blue";
13+
age?: number;
14+
hairColor?: "black" | "brown" | "blue";
915
[k: string]: any;
10-
}
16+
}

0 commit comments

Comments
 (0)