We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe9472d commit 4500b4aCopy full SHA for 4500b4a
1 file changed
docs/source/index.md
@@ -69,6 +69,24 @@ rate_limit = replane.configs["rate-limit"]
69
await replane.close()
70
```
71
72
+### Type-safe with Generated Types
73
+
74
+Generate TypedDict types from the Replane dashboard for full type safety:
75
76
+```python
77
+from replane import Replane
78
+from replane_types import Configs # Generated from dashboard
79
80
+with Replane[Configs](
81
+ base_url="https://replane.example.com",
82
+ sdk_key="rp_...",
83
+) as replane:
84
+ # Dictionary-style access with full type safety
85
+ settings = replane.configs["app-settings"]
86
+ print(settings["maxUploadSizeMb"]) # IDE knows the type
87
+ print(settings["allowedFileTypes"]) # Autocomplete works
88
+```
89
90
```{toctree}
91
:maxdepth: 2
92
:hidden:
0 commit comments