Skip to content

SetOptionalDeep #1308

@TastyPi

Description

@TastyPi

Type description + examples

Like SetOptional but works on deeply-nested properties

type Foo = { bar: { baz: string } }
type Example = SetOptionalDeep<Foo, "bar.baz">
// Example = { bar: { baz?: string } }

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