Skip to content
New issue

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

Is there a type to merge value of a Record where each value is an object #950

Open
ashuvssut opened this issue Aug 29, 2024 · 0 comments
Open
Labels
question Further information is requested

Comments

@ashuvssut
Copy link

ashuvssut commented Aug 29, 2024

const allSteps = {
  'install-app': {
    title: 'Installing GH app to your GitHub account',
    onRetry:  () => {} ,
  },
  'generate-uat': {
    title: 'Generating Access Tokens',
    desc: '',
    onRetry:  () => {} ,
  },
  'storing-locally': { 
    title: 'Store access tokens securely on device', 
    onRetry: () => {} 
   },
}

Is there a type to merge value of a Record where each value is an object?

for example

type StepProps = MergeRecordValues<typeof allSteps>

// StepProps = { title: string, onRetry: ()=>{}, desc?: string}

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • The funding will be given to active contributors.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@fregante fregante added the question Further information is requested label Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants