From a20d3eaebb1c2c4f9fd07ab177a91b7529fc0102 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Mon, 10 Oct 2022 20:58:19 -0700 Subject: Support cache with same name applied to multiple getters --- src/bun.js/scripts/class-definitions.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/bun.js/scripts/class-definitions.ts') 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; proto: Record; + values?: string[]; JSType?: string; noConstructor?: boolean; estimatedSize?: boolean; -- cgit v1.2.3