Closed NathanWalker closed 3 years ago
Right now with TS 4.2 the following compilation errors occur:
Error: libs/xplat/utils/src/lib/objects.ts:14:35 - error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'unknown'.
No index signature with a parameter of type 'string' was found on type 'unknown'.
14 if (typeof value !== typeof source[key]) {
~~~~~~~~~~~
Error: libs/xplat/utils/src/lib/objects.ts:16:23 - error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'unknown'.
No index signature with a parameter of type 'string' was found on type 'unknown'.
16 result[key] = source[key];
~~~~~~~~~~~
Error: libs/xplat/utils/src/lib/objects.ts:18:40 - error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'unknown'.
No index signature with a parameter of type 'string' was found on type 'unknown'.
18 result[key] = deepMerge(value, source[key]);
~~~~~~~~~~~
Error: libs/xplat/utils/src/lib/objects.ts:20:23 - error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'unknown'.
No index signature with a parameter of type 'string' was found on type 'unknown'.
20 result[key] = source[key];
~~~~~~~~~~~
Error: libs/xplat/utils/src/lib/platform.ts:5:13 - error TS7005: Variable 'NSObject' implicitly has an 'any' type.
5 declare var NSObject, NSString, android, java, window;
~~~~~~~~
Error: libs/xplat/utils/src/lib/platform.ts:5:23 - error TS7005: Variable 'NSString' implicitly has an 'any' type.
5 declare var NSObject, NSString, android, java, window;
~~~~~~~~
Error: libs/xplat/utils/src/lib/platform.ts:5:33 - error TS7005: Variable 'android' implicitly has an 'any' type.
5 declare var NSObject, NSString, android, java, window;
~~~~~~~
Error: libs/xplat/utils/src/lib/platform.ts:5:42 - error TS7005: Variable 'java' implicitly has an 'any' type.
5 declare var NSObject, NSString, android, java, window;39m
~~~~
Error: libs/xplat/utils/src/lib/platform.ts:5:48 - error TS7005: Variable 'window' implicitly has an 'any' type.
5 declare var NSObject, NSString, android, java, window;
any thoughts on when this would be addressed?
Latest Nx 12.3 sets up Angular 12 and TypeScript 4.2.