diff options
author | 2022-10-10 20:58:19 -0700 | |
---|---|---|
committer | 2022-10-10 20:58:19 -0700 | |
commit | a20d3eaebb1c2c4f9fd07ab177a91b7529fc0102 (patch) | |
tree | 55d48b8c8e821622ad0665bb0d8c66414efce944 /src/bun.js/scripts/class-definitions.ts | |
parent | 3cc61f8e30f494c10de08de8afcf7bef3dd67fec (diff) | |
download | bun-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.ts | 5 |
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; |