![]() |
1
Lqxc 145 天前 via Android
还需要点上下文
|
![]() |
2
cyrbuzz 145 天前
XXX.specs?.item?.type === 'array'。
|
![]() |
3
IvanLi127 145 天前
要么你得先在前面加判断,判断出是 `XXX.specs` 是 `booleanDateType`;要么直接把 `XXX.specs` 强转成 `booleanDateType`。
|
![]() |
4
lovedebug 145 天前
你这是在操作类型啊,不是值
|
5
Leviathann 145 天前
stringDateType 怎么定义的?
|
6
renmu 145 天前 via Android
//@ts-ignore
|
![]() |
7
xutao881 145 天前
```
x?.x?.x?.item ``` 可解 99% 的 not exist 问题 |
![]() |
8
particlec OP const arr = XXX.specs as ArrDateType;定死类型就行了
|
9
PerFectTime 145 天前
//@ts-ignore
手动狗头 |