Skip to content

Commit aee4487

Browse files
committed
upgrade devDependencies, fix internal typing bug caused by variance check
1 parent 59233c7 commit aee4487

File tree

3 files changed

+1316
-985
lines changed

3 files changed

+1316
-985
lines changed

index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export function react2angular<Props>(
2121
injectNames: string[] = []
2222
): IComponentOptions {
2323
const names = bindingNames
24-
|| (Class.propTypes && Object.keys(Class.propTypes))
24+
|| (Class.propTypes && Object.keys(Class.propTypes) as (keyof Props)[])
2525
|| []
2626

2727
return {

package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -45,33 +45,33 @@
4545
"react-dom": ">=15"
4646
},
4747
"devDependencies": {
48-
"@types/angular": ">=1.5",
49-
"@types/angular-mocks": "^1.5.11",
50-
"@types/jasmine": "^2.8.6",
51-
"@types/jquery": "^3.3.0",
52-
"@types/prop-types": "^15.5.2",
53-
"@types/react": "^16.0.36",
54-
"@types/react-dom": "^16.0.3",
55-
"angular-mocks": "^1.6.9",
56-
"angular-resource": "^1.6.9",
57-
"browserify": "^16.0.0",
58-
"jasmine": "^3.0.0",
59-
"jasmine-core": "^2.99.1",
60-
"karma": "^2.0.0",
61-
"karma-browserify": "^5.2.0",
48+
"@types/angular": "^1.6.47",
49+
"@types/angular-mocks": "^1.6.0",
50+
"@types/jasmine": "^2.8.8",
51+
"@types/jquery": "^3.3.4",
52+
"@types/prop-types": "^15.5.3",
53+
"@types/react": "^16.4.1",
54+
"@types/react-dom": "^16.0.6",
55+
"angular-mocks": "^1.7.2",
56+
"angular-resource": "^1.7.2",
57+
"browserify": "^16.2.2",
58+
"jasmine": "^3.1.0",
59+
"jasmine-core": "^3.1.0",
60+
"karma": "^2.0.3",
61+
"karma-browserify": "^5.3.0",
6262
"karma-chrome-launcher": "^2.2.0",
63-
"karma-jasmine": "^1.1.1",
63+
"karma-jasmine": "^1.1.2",
6464
"karma-mocha-reporter": "^2.2.5",
65-
"karma-source-map-support": "^1.2.0",
65+
"karma-source-map-support": "^1.3.0",
6666
"ngimport": "^1.0.0",
67-
"npm-run-all": "^4.1.2",
68-
"prop-types": "^15.6.0",
69-
"react": "^16.2.0",
70-
"react-dom": "^16.2.0",
71-
"rollupify": "^0.4.0",
72-
"tslint": "^5.9.1",
73-
"typescript": "^2.7.1",
74-
"watchify": "^3.10.0"
67+
"npm-run-all": "^4.1.3",
68+
"prop-types": "^15.6.2",
69+
"react": "^16.4.1",
70+
"react-dom": "^16.4.1",
71+
"rollupify": "^0.5.0",
72+
"tslint": "^5.10.0",
73+
"typescript": "^2.9.2",
74+
"watchify": "^3.11.0"
7575
},
7676
"dependencies": {
7777
"@types/lodash.frompairs": "^4.0.3",

0 commit comments

Comments
 (0)