Closed winchesHe closed 3 months ago
hey @winchesHe , i would like to work on this can you please elaborate this a bit
@ankiiisharma Sure
packageManager: string
to packageManager: Agent
and use generic T instead Agentconst { install, remove } = getPackageManagerInfo('npm')
got type install --> 'install'
remove --> 'unistall'
With bun:
const { install, remove } = getPackageManagerInfo('bun')
got type install --> 'add'
remove --> 'remove'
More Referrence:
getStore
functioncombineProblemRecord
functionupgrade
functionOnit , can you assign this to me?
@ankiiisharma Assigned it to you 🚀
@winchesHe , If I have not mistaken, would you like me to make the changes in src/helpers/utils.ts
file?
-Refactor getPackageManagerInfo to use generics for dynamic inference of install and remove types based on package manager. -Update return type for improved type safety and flexibility. -Restructure function for better readability.
@winchesHe kindly check.
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Referrence: src/constants/store.ts getStore function
Describe alternatives you've considered
No
Screenshots or Videos
No response