Skip to content

Commit

Permalink
chore(deck): Update to Typescript 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Jun 19, 2019
1 parent 5d63230 commit 08e9506
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 40 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as React from 'react';
import { Modal } from 'react-bootstrap';
import { Formik, Form } from 'formik';
import { pickBy } from 'lodash';

import {
TextInput,
Expand Down Expand Up @@ -56,15 +57,7 @@ export class ConfigureRedirectConfigModal extends React.Component<IConfigureRedi
};

private submit = (data: IRedirectActionConfig): void => {
const filteredData = Object.keys(data).reduce(
(acc, key: keyof IRedirectActionConfig) => {
if (data[key] && data[key] !== '') {
acc[key] = data[key];
}
return acc;
},
{} as IRedirectActionConfig,
);
const filteredData: IRedirectActionConfig = pickBy(data, (value: string) => value && value !== '');
this.props.closeModal(filteredData);
};

Expand Down
8 changes: 4 additions & 4 deletions app/scripts/modules/core/src/utils/retryablePromise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ export interface IRetryablePromise<T> {
promise: IPromise<T>;
}

export const retryablePromise: <T>(
export const retryablePromise = <T>(
closure: () => IPromise<T>,
interval?: number,
maxTries?: number,
) => IRetryablePromise<T> = <T>(closure: () => IPromise<T>, interval = 1000, maxTries = 0) => {
interval = 1000,
maxTries = 0,
): IRetryablePromise<T> => {
let currentTimeout: IPromise<T>;
let currentTries = 0;
const retryPromise: () => IPromise<T> = () => {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@
"@types/webdriverio": "^4.13.0",
"@types/webpack": "4.4.24",
"@types/webpack-env": "1.13.7",
"@typescript-eslint/eslint-plugin": "^1.3.0",
"@typescript-eslint/parser": "^1.3.0",
"@typescript-eslint/eslint-plugin": "^1.10.2",
"@typescript-eslint/parser": "^1.10.2",
"angular-mocks": "1.6.10",
"angulartics": "^1.1.2",
"angulartics-google-analytics": "^0.2.0",
Expand Down Expand Up @@ -194,7 +194,7 @@
"tslint-eslint-rules": "^5.3.1",
"tslint-loader": "^3.6.0",
"tslint-react": "^3.6.0",
"typescript": "^3.2.4",
"typescript": "~3.4.0",
"url-loader": "1.1.2",
"wait-on": "^3.2.0",
"wdio-jasmine-framework": "^0.3.8",
Expand Down
59 changes: 35 additions & 24 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,11 @@
"@types/cheerio" "*"
"@types/react" "*"

"@types/eslint-visitor-keys@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d"
integrity sha512-OCutwjDZ4aFS6PB1UZ988C4YgwlBHJd6wCeQqaLdmadZ/7e+w79+hbMUFC1QXDNCmdyoRfAFdm0RypzwR+Qpag==

"@types/form-data@*":
version "2.2.1"
resolved "https://registry.yarnpkg.com/@types/form-data/-/form-data-2.2.1.tgz#ee2b3b8eaa11c0938289953606b745b738c54b1e"
Expand Down Expand Up @@ -616,28 +621,39 @@
"@types/uglify-js" "*"
source-map "^0.6.0"

"@typescript-eslint/eslint-plugin@^1.3.0":
version "1.3.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-1.3.0.tgz#e64c859a3eec10d96731eb5f72b5f48796a2f9ad"
integrity sha512-s+vjO9+PvYS2A6FnQC/imyEDOkrEKIzSpPf2OEGnkKqa5+1d0cuXgCi/oROtuBht2/u/iK22nrYcO/Ei4R8F/g==
"@typescript-eslint/eslint-plugin@^1.10.2":
version "1.10.2"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-1.10.2.tgz#552fc64cfcb19c6162190360217c945e8faa330a"
integrity sha512-7449RhjE1oLFIy5E/5rT4wG5+KsfPzakJuhvpzXJ3C46lq7xywY0/Rjo9ZBcwrfbk0nRZ5xmUHkk7DZ67tSBKw==
dependencies:
"@typescript-eslint/parser" "1.3.0"
requireindex "^1.2.0"
"@typescript-eslint/experimental-utils" "1.10.2"
eslint-utils "^1.3.1"
functional-red-black-tree "^1.0.1"
regexpp "^2.0.1"
tsutils "^3.7.0"

"@typescript-eslint/parser@1.3.0", "@typescript-eslint/parser@^1.3.0":
version "1.3.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-1.3.0.tgz#e61e795aa050351b7312a757e0864b6d90b84078"
integrity sha512-Q5cz9nyEQyRrtItRElvQXdNs0Xja1xvOdphDQR7N6MqUdi4juWVNxHKypdHQCx9OcEBev6pWHOda8lwg/2W9/g==
"@typescript-eslint/experimental-utils@1.10.2":
version "1.10.2"
resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-1.10.2.tgz#cd548c03fc1a2b3ba5c136d1599001a1ede24215"
integrity sha512-Hf5lYcrnTH5Oc67SRrQUA7KuHErMvCf5RlZsyxXPIT6AXa8fKTyfFO6vaEnUmlz48RpbxO4f0fY3QtWkuHZNjg==
dependencies:
"@typescript-eslint/typescript-estree" "1.3.0"
"@typescript-eslint/typescript-estree" "1.10.2"
eslint-scope "^4.0.0"

"@typescript-eslint/parser@^1.10.2":
version "1.10.2"
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-1.10.2.tgz#36cfe8c6bf1b6c1dd81da56f88c8588f4b1a852b"
integrity sha512-xWDWPfZfV0ENU17ermIUVEVSseBBJxKfqBcRCMZ8nAjJbfA5R7NWMZmFFHYnars5MjK4fPjhu4gwQv526oZIPQ==
dependencies:
"@types/eslint-visitor-keys" "^1.0.0"
"@typescript-eslint/experimental-utils" "1.10.2"
"@typescript-eslint/typescript-estree" "1.10.2"
eslint-visitor-keys "^1.0.0"

"@typescript-eslint/typescript-estree@1.3.0":
version "1.3.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-1.3.0.tgz#1d1f36680e5c32c3af38c1180153f018152f65f9"
integrity sha512-h6UxHSmBUopFcxHg/eryrA+GwHMbh7PxotMbkq9p2f3nX60CKm5Zc0VN8krBD3IS5KqsK0iOz24VpEWrP+JZ2Q==
"@typescript-eslint/typescript-estree@1.10.2":
version "1.10.2"
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-1.10.2.tgz#8403585dd74b6cfb6f78aa98b6958de158b5897b"
integrity sha512-Kutjz0i69qraOsWeI8ETqYJ07tRLvD9URmdrMoF10bG8y8ucLmPtSxROvVejWvlJUGl2et/plnMiKRDW+rhEhw==
dependencies:
lodash.unescape "4.0.1"
semver "5.5.0"
Expand Down Expand Up @@ -10608,11 +10624,6 @@ require-main-filename@^1.0.1:
resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1"
integrity sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=

requireindex@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/requireindex/-/requireindex-1.2.0.tgz#3463cdb22ee151902635aa6c9535d4de9c2ef1ef"
integrity sha512-L9jEkOi3ASd9PYit2cwRfyppc9NoABujTP8/5gFcbERmo5jUoAKovIC3fsF17pkTnGsrByysqX+Kxd2OTNI1ww==

requires-port@1.x.x, requires-port@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff"
Expand Down Expand Up @@ -12227,10 +12238,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=

typescript@^3.2.4:
version "3.2.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.2.4.tgz#c585cb952912263d915b462726ce244ba510ef3d"
integrity sha512-0RNDbSdEokBeEAkgNbxJ+BLwSManFy9TeXz8uW+48j/xhEXv1ePME60olyzw2XzUqUBNAYFeJadIqAgNqIACwg==
typescript@~3.4.0:
version "3.4.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.4.5.tgz#2d2618d10bb566572b8d7aad5180d84257d70a99"
integrity sha512-YycBxUb49UUhdNMU5aJ7z5Ej2XGmaIBL0x34vZ82fn3hGvD+bgrMrVDpatgz2f7YxUMJxMkbWxJZeAvDxVe7Vw==

ua-parser-js@^0.7.18, ua-parser-js@^0.7.9:
version "0.7.19"
Expand Down

0 comments on commit 08e9506

Please sign in to comment.