Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit 0aca34e

Browse files
committed
increase strict TS compat
1 parent b1cdc6d commit 0aca34e

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

ISSUES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,9 @@
6666
* Replace `Object.assign({}, a, b, ...)` calls by `{...a, ...b, ...}`.
6767

6868
- App logic:
69+
* When authentication fails we always say "Wrong username or password", but reasons may be very different,
70+
e.g. CORS stuff (TypeError), 40x and 50x errors
71+
* Getting message "Opps! Connection ... closed" when logging out.
6972
* Electron main, remote mode: Only quit after we have successfully logged out OR after timeout
73+
* When going back from first screen, `webAPIConfig` will be the one from CateHub. To fix this
74+
we need `interface { local: WebAPIConfig, remote: WebAPIConfig }`

src/common/array-diff.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as assert from './assert';
2-
import deepEqual = require('deep-equal');
2+
import deepEqual from 'deep-equal';
33

44
type ObjectWithId = { id: any; }
55

@@ -49,9 +49,9 @@ export interface ArrayAction<T extends ObjectWithId> {
4949
* Signature: (element1, element2) => any
5050
* @returns {ArrayAction<T>[]} An array of actions to be performed to make oldArray equal to newArray.
5151
*/
52-
export function arrayDiff<T extends ObjectWithId>(oldArray: T[], newArray: T[], computeChange?): ArrayAction<T>[] {
52+
export function arrayDiff<T extends ObjectWithId>(oldArray: T[], newArray: T[], computeChange?: (e1: any, e2: any) => any): ArrayAction<T>[] {
5353

54-
const actions = <ArrayAction<T>[]>[];
54+
const actions = [] as ArrayAction<T>[];
5555
const currentArray = oldArray.slice();
5656

5757
// REMOVE first, so we have less actions afterwards

src/renderer/reducers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ import {
5454
INITIAL_SESSION_STATE
5555
} from './initial-state';
5656
import { NEW_CTX_OPERATION_STEP_DIALOG_ID } from './containers/operation-step-dialog-ids';
57-
import deepEqual = require('deep-equal');
57+
import deepEqual from 'deep-equal';
5858

5959
// Note: reducers are unit-tested through actions.spec.ts
6060

0 commit comments

Comments
 (0)