Code QuizAdvanced

Stripping the this parameter

OmitThisParameter<T> removes the this parameter — Omit cannot.

Codetypescript
function greet(this: { name: string }): string {
  return this.name;
}

type Unbound = Omit<typeof greet, "this">; // wrong result

What is the bug in how the this parameter is being removed?