Commit da92bc0
docs: improve "Router to Contract" (#752)
I haven't tested it.
Only written the result of this Github Discussion
https://github.com/unnoq/orpc/discussions/696
Closes: https://github.com/unnoq/orpc/issues/732
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Documentation**
* Improved guidance on TypeScript typing for imported contract JSON,
including a safer example that preserves type inference and type safety
when using contracts on the client side.
* Added a warning note explaining the necessity of manual casting due to
JSON serialization limitations of standard schema types.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: unnoq <contact@unnoq.com>1 parent f356b86 commit da92bc0
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
0 commit comments