aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/scripts/class-definitions.ts
diff options
context:
space:
mode:
authorGravatar Dylan Conway <35280289+dylan-conway@users.noreply.github.com> 2022-11-15 17:47:38 -0800
committerGravatar GitHub <noreply@github.com> 2022-11-15 17:47:38 -0800
commit025749027bbb9aefe371a85277c8103dc80c6a06 (patch)
treed36426a93bb10323a0c0980b246070dcbb4acf2d /src/bun.js/scripts/class-definitions.ts
parent44babb9ce5a4e26fc43b002dedbf194c31331a0e (diff)
downloadbun-025749027bbb9aefe371a85277c8103dc80c6a06.tar.gz
bun-025749027bbb9aefe371a85277c8103dc80c6a06.tar.zst
bun-025749027bbb9aefe371a85277c8103dc80c6a06.zip
add generated getter/setter type with thisValue (#1513)
Diffstat (limited to 'src/bun.js/scripts/class-definitions.ts')
-rw-r--r--src/bun.js/scripts/class-definitions.ts10
1 files changed, 7 insertions, 3 deletions
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;