Skip to content

Remove pick function #247849

Closed
Closed
@jrieken

Description

@jrieken

This should be removed:

export const pick = <TObject, TKeyName extends keyof TObject>(

Because it make us write property names as strings, e.g pick('bar')(obj) instead of just obj.bar which is bad because

  • it gives TS tooling a hard time, e.g find all references, rename, etc pp do not work
  • it seems like bloat and not the simplest thing that you can write
  • it makes the code impossible to be minified

Metadata

Metadata

Labels

debtCode quality issuesinsiders-releasedPatch has been released in VS Code Insiders

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions