Upgrade to typescript@3.6.3

This commit is contained in:
Jerko Steiner 2019-09-14 11:58:00 +07:00
parent c14456b606
commit 177c52b438
3 changed files with 16 additions and 11 deletions

9
package-lock.json generated
View File

@ -2224,6 +2224,9 @@
"@rondo.dev/test-utils": { "@rondo.dev/test-utils": {
"version": "file:packages/test-utils" "version": "file:packages/test-utils"
}, },
"@rondo.dev/validator": {
"version": "file:packages/validator"
},
"@types/babel__core": { "@types/babel__core": {
"version": "7.1.0", "version": "7.1.0",
"resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.0.tgz", "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.0.tgz",
@ -15086,9 +15089,9 @@
} }
}, },
"typescript": { "typescript": {
"version": "3.5.2", "version": "3.6.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-3.5.2.tgz", "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.6.3.tgz",
"integrity": "sha512-7KxJovlYhTX5RaRbUdkAXN1KUZ8PwWlTzQdHV6xNqvuFOs7+WBo10TQUqT19Q/Jz2hk5v9TQDIhyLhhJY4p5AA==", "integrity": "sha512-N7bceJL1CtRQ2RiG0AQME13ksR7DiuQh/QehubYcghzv20tnh+MQnQIuJddTmsbqYj+dztchykemz0zFzlvdQw==",
"dev": true "dev": true
}, },
"typescript-tslint-plugin": { "typescript-tslint-plugin": {

View File

@ -90,11 +90,11 @@
"tsify": "^4.0.1", "tsify": "^4.0.1",
"tslint": "^5.12.0", "tslint": "^5.12.0",
"ttypescript": "^1.5.7", "ttypescript": "^1.5.7",
"typescript": "^3.5.2", "typescript": "^3.6.3",
"typescript-tslint-plugin": "^0.5.4", "typescript-tslint-plugin": "^0.5.4",
"uglify-js": "^3.5.3", "uglify-js": "^3.5.3",
"uglifyify": "^5.0.1", "uglifyify": "^5.0.1",
"watchify": "^3.11.1" "watchify": "^3.11.1"
}, },
"name": "node" "name": "node"
} }

View File

@ -7,13 +7,15 @@ import { pack, TStateSelector } from './pack'
describe('pack', () => { describe('pack', () => {
interface IChangeAction {
payload: {a: number, b: string},
type: 'CHANGE'
}
interface IProps { interface IProps {
a: number a: number
b: string b: string
update(a: number, b: string): { update(a: number, b: string): IChangeAction
payload: {a: number, b: string},
type: 'CHANGE',
}
c: string[] c: string[]
} }
@ -71,7 +73,7 @@ describe('pack', () => {
getLocalState, getLocalState,
(localState: LocalState) => localState, (localState: LocalState) => localState,
{ {
update(a: number, b: string) { update(a: number, b: string): IChangeAction {
return { return {
payload: {a, b}, payload: {a, b},
type: 'CHANGE', type: 'CHANGE',
@ -89,7 +91,7 @@ describe('pack', () => {
getLocalState, getLocalState,
(localState: LocalState) => localState, (localState: LocalState) => localState,
{ {
update(a: number, b: string) { update(a: number, b: string): IChangeAction {
return { return {
payload: {a, b}, payload: {a, b},
type: 'CHANGE', type: 'CHANGE',