Closed Spongman closed 4 years ago
It's not; the typed definition is not complete.
what about IConnectionOptions
? https://dotnetify.net/core/api/routing#setting-up-route-links has this:
const onRouteEnter = (path, template) => template.Target = "Content";
this.vm = dotnetify.react.connect("Index", this, { onRouteEnter });
but IConnectOptions
doesn't have an onRouteEnter
.
it's not entirely clear to me that the above code would work if it did...
Next version will have better Typescript support. Until then, see the code in this branch for up-to-date typings: https://github.com/dsuryd/dotNetify/blob/Typescript/DevApp/src/dotnetify/_typings/index.ts
i think probably those docs should be changed to use the this.vm.onRouteEnter = ...
variant.
Updated typings in v4. There are breaking changes from renamed types.
is this deprecated?