Skip to content

Commit 81780fe

Browse files
mishushakovclaude
andcommitted
Use string & {} with eslint-disable for language autocomplete
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 46a7fcc commit 81780fe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

js/src/sandbox.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ export interface CreateCodeContextOpts {
8888
*
8989
* @default python
9090
*/
91-
language?: 'python' | 'javascript' | 'typescript' | 'r' | 'java' | 'bash' | string
91+
// eslint-disable-next-line @typescript-eslint/ban-types
92+
language?: 'python' | 'javascript' | 'typescript' | 'r' | 'java' | 'bash' | (string & {})
9293
/**
9394
* Timeout for the request in **milliseconds**.
9495
*
@@ -149,7 +150,8 @@ export class Sandbox extends BaseSandbox {
149150
*
150151
* If not defined, the default Python context is used.
151152
*/
152-
language?: 'python' | 'javascript' | 'typescript' | 'r' | 'java' | 'bash' | string
153+
// eslint-disable-next-line @typescript-eslint/ban-types
154+
language?: 'python' | 'javascript' | 'typescript' | 'r' | 'java' | 'bash' | (string & {})
153155
}
154156
): Promise<Execution>
155157
/**

0 commit comments

Comments
 (0)