From 206b85e5db697fcd0d45673b786ed340ed1ec9d3 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Wed, 17 May 2023 18:52:23 -0700 Subject: Support static string values in our class bindings generator --- src/bun.js/scripts/class-definitions.ts | 1 + 1 file changed, 1 insertion(+) (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 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 }; -- cgit v1.2.3