2024-08-25 18:41
My biggest issue with typescript. If set on line 8 returns error "Argument of type '{ a: string; }' is not assignable to parameter of type 'ExampleInf'" because the argument is missing interface properties, then set on line 12 should throw ClassCastException or return same error, because it is the same issue. Cast argument is not fulfilling declared interface signature.
回覆
轉發

作者

Gregor
hrax13
粉絲
串文
67+

回覆

轉發

24小時粉絲增長

無資料

互動率

(讚 + 回覆 + 轉發) / 粉絲數
NaN%

回覆 (BETA)

最先回覆的內容
發文後用戶內容
8 分鐘內
Gregor
hrax13
3 小時內
Dave W
darve
My biggest issue with typescript is the people who use typescript

© 2025 Threadser.net. 版權所有。

Threadser.net 與 Meta Platforms, Inc. 無關,未經其認可、贊助或特別批准。

Threadser.net 也不與 Meta 的"Threads" 產品存在任何關聯。