Skip to content

简化ExcludeFunction类型函数 #3

@Julian0197

Description

@Julian0197

type ExcludeFunction = Pick<
T,
{ [K in keyof T]: T[K] extends Function ? never : K }[keyof T]

改为:
type ExcludeFunction = {
[K in keyof T]: T[K] extends Function ? never : T[K];
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions