Commit a635a06
authored
[feature] Expose all types via type-builder (not just dynamic) (#1893)
<!-- ELLIPSIS_HIDDEN -->
> [!IMPORTANT]
> Expose all types via `TypeBuilder`, not just dynamic types, in
`type_builder.ts` for React, TypeScript, and TypeScript-ESM, adding
`ClassViewer` and `EnumViewer` for static types.
>
> - **Behavior**:
> - Expose all types via `TypeBuilder`, not just dynamic types, in
`type_builder.ts` for React, TypeScript, and TypeScript-ESM.
> - Add `ClassViewer` and `EnumViewer` for static types, allowing access
to all class and enum types.
> - **Files**:
> - Update `type_builder.ts` in `integ-tests/react/baml_client`,
`integ-tests/typescript-esm/baml_client`, and
`integ-tests/typescript/baml_client` to include all types.
> - **Misc**:
> - Ensure consistency across different environments by updating type
definitions and constructors.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup>
for dc8de13. You can
[customize](https://app.ellipsis.dev/BoundaryML/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->1 parent 20d0137 commit a635a06
16 files changed
Lines changed: 7619 additions & 434 deletions
File tree
- engine
- baml-runtime
- src
- language_client_codegen/src
- python/templates
- typescript/templates
- language_client_python/python_src/baml_py
- language_client_typescript
- typescript_src
- integ-tests
- python
- baml_client
- tests
- react/baml_client
- typescript-esm
- baml_client
- typescript/baml_client
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
| |||
173 | 172 | | |
174 | 173 | | |
175 | 174 | | |
| 175 | + | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
116 | 129 | | |
117 | 130 | | |
118 | 131 | | |
| |||
174 | 187 | | |
175 | 188 | | |
176 | 189 | | |
| 190 | + | |
177 | 191 | | |
178 | 192 | | |
179 | 193 | | |
| |||
196 | 210 | | |
197 | 211 | | |
198 | 212 | | |
| 213 | + | |
199 | 214 | | |
200 | 215 | | |
201 | 216 | | |
| |||
0 commit comments