Skip to content

Unify TS API for fromModelName and fromCustomModel #961

@msluszniak

Description

@msluszniak

Right now, fromModelName takes one argument: object that takes all needed fields. On the other hand, fromCustomModel takes the same positional arguments as the first one, without field modelName. The reason why fromModelName takes one arguments is mainly because we can bundle constants to export them in a friendly way for a user. Theoretically, there is no need for that in case of fromCustomModel. However, we may consider unifying API for simplicity. We need to discuss it internally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaNew idea to enhance the library, suggestion, etc.user expThis issue tackles problems with user experience e.g. overcomplicated API

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions