amplication / amplication/prisma-schema-dsl
Improvement in function parameters
Open
backlog
stale
- Dominant language
- TypeScript
- Stars
- 113
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
It would be more interesting if instead of having fixed order parameters, an object is used for the parameters in the functions createScalarField, createObjectField, createDataSource. An article to use as a reference: [The Options Object Pattern with TypeScript](https://medium.com/@bchadwickfrance/the-options-object-pattern-with-typescript-a14f33306ec8).
Example implementation:
`createDataSource({ name: string, provider: DataSourceProvider, url: string | DataSourceURLEnv }): DataSource`
Contributor guide
Assessment
This issue has not been assessed yet.