function returnsThisView codereturnsThis<Self = any, Args extends unknown[] = any[]>(): (this: Self,...args: Args) => SelfCreates a function that returns the instance the method was called on. Type ParametersSelf = anyView codeArgs extends unknown[] = any[]View codeReturn Type(this: Self,...args: Args) => SelfView code