aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/scripts/class-definitions.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/scripts/class-definitions.ts')
-rw-r--r--src/bun.js/scripts/class-definitions.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bun.js/scripts/class-definitions.ts b/src/bun.js/scripts/class-definitions.ts
index f8b08e9bd..74f04720e 100644
--- a/src/bun.js/scripts/class-definitions.ts
+++ b/src/bun.js/scripts/class-definitions.ts
@@ -1,7 +1,7 @@
export type Field =
- | { getter: string; cache?: true }
+ | { getter: string; cache?: true | string }
| { setter: string }
- | { accessor: { getter: string; setter: string }; cache?: true }
+ | { accessor: { getter: string; setter: string }; cache?: true | string }
| {
fn: string;
length?: number;
@@ -18,6 +18,7 @@ export interface ClassDefinition {
finalize?: boolean;
klass: Record<string, Field>;
proto: Record<string, Field>;
+ values?: string[];
JSType?: string;
noConstructor?: boolean;
estimatedSize?: boolean;