brillout / telefunc

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

`typeToShield.ts` error upon upgrade typescript #112

Closed brillout closed 3 weeks ago

brillout commented 4 months ago

Hi @louwers, I'm trying to upgrade to TypeScript 5.5.2 but I get following error about typeToShield.ts.

image

Do you have a suggestion for how to solve it?

I hope you're well!

louwers commented 4 months ago

Hi @brillout, likewise. :)

Seems to happen with 5.4.5 first in the playground.

I can have a look next weekend.

https://www.typescriptlang.org/play/?ts=5.4.5#code/C4TwDgpgBAogjgVwIYBsDOAeAGgGigTQD4oBeKACgwBVDyBKU4qqCAD2AgDsATNKLKAH4oARigAuKACYGbDjz7VaDEkxbsuvAkNETpO4ACcE0SQDNUaCAChroSFACqnAJYB7TlTcBJTh0NWAMbA7pxKpBTMcpp8zMLkYEiGSAC2aJJUKsRInCB6nBAAbhCGshoKFInJaZIunGYlUAAKWVA5ecJN+UUltgD0fVBghhDAISUAtC4A5pxuI9YDUABG7ikQU7Pz0GbzKUjA4nbg0M6hXlQIYCgQ1HgAShB80RXtANoAuhGfxGRnHl5fP4giEPBhrFAoFFylp2jp6Iwod1ioZrMQXloEaooHUGoYoI9gAhDJ4ThCdP9PG5LtdbjBWIEUAhuLcqA9RsTSZBCHg3gA6AWPNDsokkqgnD6EcmSIW2ezQADKAAsXBAUNwhRgFep5Fo0EY6tM8ABBQKBHUxKD6wyGz7fSURADe5OtkgV5KQZskpsC1gAvv1BsNRuNDJs5gslqs3Otw9soLtDPtDscHAqXClaeLIHcoD6La9cnayD8IvBkOhc9bDeiYXwjCZycJlar1ZqAOQAfU7HBuZgQnECPb51c403bJrNUshknLllznAQKWWJVruvrxhskObKrVGqeGC7PbVEH7g+Hi+XJQnean0tgiHnbJWbjcNxya8tDa3Ohbe473a9qeA5DsAfLLK+76cDePrTnoc6Vs+AAiBwQJ+FTfk2UB-m2B5HkBZ6gXy3CoTBd4zg+FaYM+7ToVomHbthu64Zg+EnoRw7tGRgRweYlg2IsQYjGMqphjMEY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mQhrHVHH5bEYkYwWFvF3F-4TiEl3EIa6GsK6FN7-6-GEIsEjFsG77zhckuE-C2FolPoimzqKkyGjGcysl77TFmFinmQfA6nxFImPqGzXoGlER1F3FilynIFKkqlDFqk+FmmakH5-pIDTAQAlwuEADcUASoqewULgZskg5RgGRef60ZaAsZ8Z4paJ5RjcIZkgCpLhgG5eqpAJpp4xHBFpXBQZuZz+eRkZqZ6ZEAggCZE+OQSZfJx+KZMZcZoZmZpJXRJJzR5RdAOZPZ+ZeRhZfxxZzJQBAZXBm6TwmGfytxaJTx85+oD0J0RhO+mB6ogOZ0HA65m5l05J207YN0a5wA55G5W5M5deB+346hmJ+h34Xhvp25ChB+aaaEuppJTxX5r5JZGpd5XBIgUgAAzI+RjHieBQBdOYCTPuWQ-Lfn+uagAOKvjcDNmtGAa4G8l2nCkoVoDoVuCYW9mDktlvx+hUlj6SmTk+mAU7ncCA5Vk9k4GoI2FCl3H6ksV5lukFlQzGnqmMWA7FKsJN6bycVol4bBDOn0F9GCV+llnmlIUH6iUmJQAsVNk1mIxJnd4pz2m4ZdIyU8VkUaH9myW9GIwMACV0WMlvm3k36qUsqLzqXiU6mSWkn6n1FGUSFjlWWwUmlAWOW-Se755vBiUuEcXthvAelLbUWimRUKXvmmEhWGyA7hF5GxFF4xUynEkWV8iKkfBJXV7+mVgVl7ihUN7hWuURGAK2RZXtnRWxWGjxXInFH5WKmtUwHtXNVjh0BFW2VSjuxKTqkGIPmFJjwTGgnBHPhC464mqi67ZBa6ZM5has4ewcHPjVbhybhXbNLwRsnTW5gGawxfnWBAA

brillout commented 4 months ago

Indeed it doesn't happen with 5.3.3.

I can have a look next weekend.

:+1: That'd be great! Let me know how it goes, I can give it a try as well (I had a look already but I ain't sure yet what I can change, I'd need to dig more into the whole logic works).

brillout commented 4 months ago

force-pushed

Just rebased on top of main, nothing changed.

brillout commented 3 weeks ago

Fixed by https://github.com/brillout/telefunc/pull/125.