react native中typescript怎么声明全局变量

2025-04-15 15:13:53
推荐回答(1个)
回答1:

react native中typescript怎么声明全局变量,
我之前没有用TS,声明是通过global.xxx='xxx'是可以的.
现在换成TS要怎么写呢?
我直接写global.xxx='xxx'也是可以的,但是WS报了个错