let routerTree = parseRoutePath(window.location.hash.slice(1), routerRules); // ->> IRouteParseResult
ReactDOM.render(<Container router={routerTree as any} />, document.querySelector(".app"));
let Container: FC<{ router: GenRouterTypeMain }> = React.memo((props) => {
ERROR in .../apis/example/main.tsx(29,30):
TS2322: Type 'IRouteParseResult<ISimpleObject, IQueryObject>' is not assignable to type '{ name: "home"; params: {}; query: {}; next: null; } | { name: "home"; params: {}; query: {}; next: null; }'.
Type 'IRouteParseResult<ISimpleObject, IQueryObject>' is not assignable to type '{ name: "home"; params: {}; query: {}; next: null; }'.
Types of property 'name' are incompatible.
Type 'string' is not assignable to type '"home"'.
ℹ 「wdm」: Failed to compile.