Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ysrfeng opened this issue May 15, 2024 · 7 comments
Closed

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

ysrfeng opened this issue May 15, 2024 · 7 comments

Comments

@ysrfeng
Copy link

ysrfeng commented May 15, 2024

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

@lingol
Copy link
Collaborator

lingol commented May 15, 2024

Yes, it's a known issue. We have asked for help but currently no solutions. #1282 (comment)

@ysrfeng
Copy link
Author

ysrfeng commented May 15, 2024

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

@lingol
Copy link
Collaborator

lingol commented May 15, 2024

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
Copy link
Author

ysrfeng commented May 15, 2024

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

@lingol
Copy link
Collaborator

lingol commented May 15, 2024

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
Copy link
Collaborator

lingol commented May 15, 2024

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
Copy link
Author

ysrfeng commented May 22, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants