diff options
author | 2023-05-17 18:52:23 -0700 | |
---|---|---|
committer | 2023-05-17 18:52:23 -0700 | |
commit | 206b85e5db697fcd0d45673b786ed340ed1ec9d3 (patch) | |
tree | 8ea944780903d954eeebdb18293c64073c72fec7 /src/bun.js/scripts/class-definitions.ts | |
parent | 25447426f19702a0fff808b3d426d66f4d8e558d (diff) | |
download | bun-206b85e5db697fcd0d45673b786ed340ed1ec9d3.tar.gz bun-206b85e5db697fcd0d45673b786ed340ed1ec9d3.tar.zst bun-206b85e5db697fcd0d45673b786ed340ed1ec9d3.zip |
Support static string values in our class bindings generator
Diffstat (limited to 'src/bun.js/scripts/class-definitions.ts')
-rw-r--r-- | src/bun.js/scripts/class-definitions.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bun.js/scripts/class-definitions.ts b/src/bun.js/scripts/class-definitions.ts index 0f06bdbde..59b8f6f05 100644 --- a/src/bun.js/scripts/class-definitions.ts +++ b/src/bun.js/scripts/class-definitions.ts @@ -5,6 +5,7 @@ interface PropertyAttribute { export type Field = | ({ getter: string; cache?: true | string; this?: boolean } & PropertyAttribute) + | { value: string } | ({ setter: string; this?: boolean } & PropertyAttribute) | ({ accessor: { getter: string; setter: string }; |