I am new to typescript. I want to extend a class to have a function similar to this. I have this code in C# but I want it to write in typescript
public static IQueryable<T> OrderByPropertyName<T>(this IQueryable<T> query, string attribute, string direction) {
// my logic here
}
anyone can help me?