mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
11 lines
606 B
Plaintext
11 lines
606 B
Plaintext
asOperatorNames.ts(2,9): error TS2352: Conversion of type 'number' to type 'string' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
|
|
|
|
|
|
==== asOperatorNames.ts (1 errors) ====
|
|
var a = 20;
|
|
var b = a as string;
|
|
~~~~~~~~~~~
|
|
!!! error TS2352: Conversion of type 'number' to type 'string' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
|
|
var as = "hello";
|
|
var as1 = as as string;
|
|
|