Skip to content

API 参数类型推断有误 #2

@Wesley-Young

Description

@Wesley-Young

如题。目前的代码生成中,API 类型部分直接使用 milky-types 的导出类型(例如 GetFriendListInput),而这些导出类型是通过 z.infer 推断得到的。这是 zod.parse 的输出类型,默认会补全默认值等,实际上调用 API 时并不需要这些值。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions