From 025749027bbb9aefe371a85277c8103dc80c6a06 Mon Sep 17 00:00:00 2001 From: Dylan Conway <35280289+dylan-conway@users.noreply.github.com> Date: Tue, 15 Nov 2022 17:47:38 -0800 Subject: add generated getter/setter type with thisValue (#1513) --- src/bun.js/scripts/class-definitions.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 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 5dac5db9c..ae1e7cf35 100644 --- a/src/bun.js/scripts/class-definitions.ts +++ b/src/bun.js/scripts/class-definitions.ts @@ -1,7 +1,11 @@ export type Field = - | { getter: string; cache?: true | string } - | { setter: string } - | { accessor: { getter: string; setter: string }; cache?: true | string } + | { getter: string; cache?: true | string; this?: boolean } + | { setter: string; this?: boolean } + | { + accessor: { getter: string; setter: string }; + cache?: true | string; + this?: boolean; + } | { fn: string; length?: number; -- cgit v1.2.3