diff options
author | 2022-11-15 17:47:38 -0800 | |
---|---|---|
committer | 2022-11-15 17:47:38 -0800 | |
commit | 025749027bbb9aefe371a85277c8103dc80c6a06 (patch) | |
tree | d36426a93bb10323a0c0980b246070dcbb4acf2d /src/bun.js/scripts/class-definitions.ts | |
parent | 44babb9ce5a4e26fc43b002dedbf194c31331a0e (diff) | |
download | bun-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.ts | 10 |
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; |