Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert extend util to TypeScript #2928

Merged
merged 18 commits into from
Nov 8, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove type from source
  • Loading branch information
davwheat authored and dsevillamartin committed Oct 30, 2021
commit 30459589bdc0e6177c35089ef9f036817ee93fc3
7 changes: 0 additions & 7 deletions js/src/common/extend.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
export type KeyOfType<T extends object, Type> = Exclude<
{
[K in keyof T]: T[K] extends Type ? K : never;
}[keyof T],
undefined
>;

/**
* Extend an object's method by running its output through a mutating callback
* every time it is called.
Expand Down