Skip to content

Create OverridePropertiesDeep type #1110

Open
@piscopancer

Description

@piscopancer

Type description + examples

OverridePropertiesDeep could use strongly typed path to the prop to change it

type GenericProps = {
  x: { 
    y: {
      z: string
    }
  }
}

type SpecificProps = OverridePropertiesDeep<GenericProps, 'x.y.z', number>

Type source

No response

Search existing types and issues first

  • I tried my best to look for it

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions