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

Deep analogue of MarkRequired with the skeleton of DeepModify #315

Open
xenoterracide opened this issue Jun 22, 2022 · 3 comments
Open

Deep analogue of MarkRequired with the skeleton of DeepModify #315

xenoterracide opened this issue Jun 22, 2022 · 3 comments
Labels
enhancement New feature or request v10.1

Comments

@xenoterracide
Copy link

I would like to be able to provide a structure to DeepRequired like DeepOmit, and I suspect this would be useful to all the Deep nested. The same structure as DeepOmit would work.

type TeacherSimple = DeepRequired<
  Teacher,
  {
    gender: never;
    students: {
      score: never;
    };
  }
>;
@Beraliv
Copy link
Collaborator

Beraliv commented Jun 22, 2022

Hey @xenoterracide!

Thank you for the suggestion! Yeah, it's a good feature that can be implemented

@Beraliv Beraliv added the enhancement New feature or request label Jun 22, 2022
@Beraliv
Copy link
Collaborator

Beraliv commented Aug 19, 2022

I started working on it here – #329

It will take time, so it will be possibly available in the release after the next one

@Beraliv
Copy link
Collaborator

Beraliv commented Mar 16, 2023

I think I will create a separate DeepMarkRequired to not change the simplicity of DeepRequired

@Beraliv Beraliv changed the title Deep nested with key specification Deep analogue of MarkRequired with the skeleton of DeepModify Mar 16, 2023
@Beraliv Beraliv added the help wanted Extra attention is needed label Mar 16, 2023
@Beraliv Beraliv removed the help wanted Extra attention is needed label Apr 3, 2023
@Beraliv Beraliv added the v10.1 label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v10.1
Projects
None yet
Development

No branches or pull requests

2 participants