We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently I always use a complex structure to define defaults in object destructions, e.g.:
module.exports = ({ client, defaultSerialColumn: defaultSerialColumn = 'id', defaultSerialColumn = 'id', defaultSchema, defaultFallbackLimit: defaultFallbackLimit = 10, defaultMaxLimit: defaultMaxLimit = 100, defaultPageSize: defaultPageSize = 10 defaultFallbackLimit = 10, defaultMaxLimit = 100, defaultPageSize = 10 } = {}) => { ... }
But I don't know why I always these complex structure and it can be reduced to the simpler one, e.g.:
module.exports = ({ client, defaultSerialColumn = 'id', defaultSerialColumn = 'id', defaultSchema, defaultFallbackLimit = 10, defaultMaxLimit = 100, defaultPageSize = 10 defaultFallbackLimit = 10, defaultMaxLimit = 100, defaultPageSize = 10 } = {}) => { ... }
The text was updated successfully, but these errors were encountered:
Remove unneeded complex object destruction default syntax #28
4d4f677
Merge pull request #29 from Sharaal/Remove-unneeded-complex-object-de…
3981ee2
…struction-default-syntax-#28 Remove unneeded complex object destruction default syntax #28
Changed with v6.1.1.
Sorry, something went wrong.
Sharaal
No branches or pull requests
Currently I always use a complex structure to define defaults in object destructions, e.g.:
But I don't know why I always these complex structure and it can be reduced to the simpler one, e.g.:
The text was updated successfully, but these errors were encountered: