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

协议生成报错。 #51

Open
qinaddspace opened this issue Sep 10, 2024 · 2 comments
Open

协议生成报错。 #51

qinaddspace opened this issue Sep 10, 2024 · 2 comments

Comments

@qinaddspace
Copy link

export interface PropTypeData {
propId : number,
propType : PropType
amount : number
desc ?: string
}
export interface UserGameData {

propData: Map<PropType, PropTypeData> // 道具数据

}
这样写协议生成编译报错。

@qinaddspace
Copy link
Author

是不支持Map吗?

@k8w
Copy link
Owner

k8w commented Sep 10, 2024

是不支持Map吗?

是,Map 暂未支持,后续会支持。
可以先用xxx: {[key: string]: ValueType} 的形式代替,传 Object

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