brillout / telefunc

Remote Functions. Instead of API.
https://telefunc.com
MIT License
688 stars 31 forks source link

Example of react native isn't updated to use the latest syntax for shield #93

Closed pencilcheck closed 10 months ago

pencilcheck commented 10 months ago

In the telefunc website, under typescript manual it has recommended syntax for type inference. https://telefunc.com/shield#typescript-manual

However for some reason, the example doesn't uses that: https://github.com/brillout/telefunc/blob/main/examples/react-native/hello.telefunc.mjs

Update to the recommended syntax to avoid people getting lost on losing type inference capability

brillout commented 10 months ago

👍 Good point. Fixed.