aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/scripts/class-definitions.ts
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-10-10 20:58:19 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-10-10 20:58:19 -0700
commita20d3eaebb1c2c4f9fd07ab177a91b7529fc0102 (patch)
tree55d48b8c8e821622ad0665bb0d8c66414efce944 /src/bun.js/scripts/class-definitions.ts
parent3cc61f8e30f494c10de08de8afcf7bef3dd67fec (diff)
downloadbun-a20d3eaebb1c2c4f9fd07ab177a91b7529fc0102.tar.gz
bun-a20d3eaebb1c2c4f9fd07ab177a91b7529fc0102.tar.zst
bun-a20d3eaebb1c2c4f9fd07ab177a91b7529fc0102.zip
Support cache with same name applied to multiple getters
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;