The webstorm ts interface indicates an error, but the ts itself is correct.

clipboard.png

clipboard.png

The

code works fine. The interface is clearly defined, but why is it initialized like this


because you declare a page, but you only assign an object. If you have learned weak typing, you will know that field consistency does not mean type consistency
you should change this Page to class and then new out

.
Menu