Skip to content

Commit 4d003e7

Browse files
author
Flavio Corpa
committed
improvement(typescript): fix tslint warnings and bump to typescript@3.9.6
1 parent c8acfca commit 4d003e7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"tslint-config-prettier": "^1.13.0",
6363
"tslint-config-standard": "^7.1.0",
6464
"typedoc": "^0.17.6",
65-
"typescript": "^2.9.2"
65+
"typescript": "^3.9.6"
6666
},
6767
"config": {
6868
"ghooks": {

src/list.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ class List<T> {
221221
): { [key: string]: TResult[] } {
222222
const initialValue: { [key: string]: TResult[] } = {}
223223
if (!mapper) {
224-
mapper = val => <TResult>(<any>val)
224+
mapper = val => (val as unknown) as TResult
225225
}
226226
return this.Aggregate((ac, v) => {
227227
const key = grouper(v)
@@ -375,6 +375,7 @@ class List<T> {
375375
keySelector: (key: T) => any,
376376
comparer = keyComparer(keySelector, false)
377377
): List<T> {
378+
// tslint:disable-next-line: no-use-before-declare
378379
return new OrderedList<T>(this._elements, comparer)
379380
}
380381

@@ -385,6 +386,7 @@ class List<T> {
385386
keySelector: (key: T) => any,
386387
comparer = keyComparer(keySelector, true)
387388
): List<T> {
389+
// tslint:disable-next-line: no-use-before-declare
388390
return new OrderedList<T>(this._elements, comparer)
389391
}
390392

0 commit comments

Comments
 (0)