Skip to content

Commit 46a7fcc

Browse files
mishushakovclaude
andcommitted
Simplify language type to plain string union
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 935ecb7 commit 46a7fcc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/src/sandbox.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export interface CreateCodeContextOpts {
8888
*
8989
* @default python
9090
*/
91-
language?: 'python' | 'javascript' | 'typescript' | 'r' | 'java' | 'bash' | (string & NonNullable<unknown>)
91+
language?: 'python' | 'javascript' | 'typescript' | 'r' | 'java' | 'bash' | string
9292
/**
9393
* Timeout for the request in **milliseconds**.
9494
*
@@ -149,7 +149,7 @@ export class Sandbox extends BaseSandbox {
149149
*
150150
* If not defined, the default Python context is used.
151151
*/
152-
language?: 'python' | 'javascript' | 'typescript' | 'r' | 'java' | 'bash' | (string & NonNullable<unknown>)
152+
language?: 'python' | 'javascript' | 'typescript' | 'r' | 'java' | 'bash' | string
153153
}
154154
): Promise<Execution>
155155
/**

0 commit comments

Comments
 (0)