dsuryd / dotNetify

Simple, lightweight, yet powerful way to build real-time web apps.
https://dotnetify.net
Other
1.17k stars 164 forks source link

Typescript definition files: hubPath, debug, debugFn missing #145

Closed treg closed 5 years ago

dsuryd commented 5 years ago

Would you like to do a PR?

On Thu, Nov 15, 2018 at 12:09 PM Treg notifications@github.com wrote:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dsuryd/dotNetify/issues/145, or mute the thread https://github.com/notifications/unsubscribe-auth/AOS8kidW6_DMJ2KFDLeNeZMaGLIRNdw7ks5uvcnggaJpZM4YiT05 .

KoriSeng commented 5 years ago

Am trying to look into populating the typescript, but i cant seem to find the files on the git. either i am blind, or it isnt there??

It should be in DevApp/src/dotnetify/typings right?!?

dsuryd commented 5 years ago

You're right; the folder accidentally wasn't transferred to the master branch from v3.0 branch. If you want to correct this, I'll wait for your PR. Thanks!

KoriSeng commented 5 years ago

Ts is being stupid, the this.vm.$routeTo doesn't seem to work, maybe because it is injected into the vm? or there is some sort of access scope.

Anyway i merged the 2 files into 1, because TS compiler is being stupid when it was split into 2, the dotnetify-react.router.d.ts fails to be loaded when using VScode/VSStudio no clue why? doing the reference path="" sort of works for the IDE, but fails to run?

one way of redirecting using dotnetify, instead of using hard browser is

dotnetify.react.router.redirect(url,dotnetify.react.getViewModels())