4Catalyzer / found

Extensible route-based routing for React applications
https://4catalyzer.github.io/found/
MIT License
794 stars 55 forks source link

Type of children does not match basic example #1061

Open steinybot opened 7 months ago

steinybot commented 7 months ago

The basic example has one of the children as:

        new Redirect({
          from: 'baz',
          to: '/foo',
        }),

If this is converted to TypeScript then it does not type check. The return type of Redrirect.render is ReactNode and not ResolvedElement | undefined.