Can someone help me understand why the RedirectRequest class cannot be used in place of UrlBuilder class in the following example?
If I get it right, the public structure of both the classes is same and the private properties should not matter
The Playground lets you write TypeScript or JavaScript online in a safe and sharable way.