Tencent / MMKV

An efficient, small mobile key-value storage framework developed by WeChat. Works on Android, iOS, macOS, Windows, and POSIX.
Other
17.3k stars 1.9k forks source link

MMKV for HarmonyOS NEXT 在ts文件中无法使用 #1301

Closed ysrfeng closed 4 months ago

ysrfeng commented 4 months ago

MMKV for HarmonyOS NEXT 使用的是ets抛出,怎么在ts中调用其方法

lingol commented 4 months ago

Yes, it's a known issue. We have asked for help but currently no solutions. https://github.com/Tencent/MMKV/issues/1282#issuecomment-2082088705

ysrfeng commented 4 months ago

老师,这个官方库同步的库,是用ts导出,实现逻辑是否可以参考一下 https://ohpm.openharmony.cn/#/cn/detail/@ohos%2Fmmkv,ets方式使用限制场景太多了,期望可以用ts导出

lingol commented 4 months ago

You just did not read my comment, didn't you?

MMKV's wrapper is developed in ArtTS and we don't want to change it to TS. How can we export it as TS without changing the MMKV wrapper from .ets to .ts?

ysrfeng commented 4 months ago

大佬我看了评论的,如果包装器不在ArtTS 中开发呢,改动大么

lingol commented 4 months ago

The problem is not about how or what, it is about why. Why would we or someone transfer a ArtTS file to TS file.

lingol commented 4 months ago

If all libraries that expose its functionality must be provided in a TS file, what's the purpose of ArtTS language in the first place? Why bother to design it at all?

ysrfeng commented 4 months ago

明白这个道理,主要是已经开发的功能不想动,时间来不及