Repository navigation
Commit 320cf75
committed
refactor(sandbox-blaxel): tighten public API surface and SDK config typing
Drop the `SandboxCreateConfiguration` re-export from index.ts. It was
unnecessary (BlaxelSandboxConfig already extends it, so consumers get
the full SDK shape transitively) and inconsistent with sandbox-daytona
and sandbox-e2b, which don't re-export their SDK config types.
Consumers who genuinely need the raw SDK type can import it directly
from `@blaxel/core`.
Annotate `getSdkConfig` with an explicit return type
(`Omit<BlaxelSandboxConfig, voltagent-extras>`) so the SDK contract is
declared at the function boundary and typos in the omit list become a
type error instead of a silent runtime no-op.1 parent 57b160a commit 320cf75
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
363 | 366 | | |
364 | 367 | | |
365 | 368 | | |
| |||
0 commit comments