Skip to content

90 - Optional Keys #210

Open
Open

Description

@ldqUndefined
type OptionalKeys<T> = {[P in keyof T]-?: {} extends Pick<T,P> ? P:never}[keyof T]

Activity

  1. added
    answer
    zh-CN
    on Sep 14, 2020
  2. wangtunan commented on Jun 2, 2021

    @wangtunan

    awsome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    90answerzh-CN

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions