From ed4e1a4cc457167da0249d1f6fd6b25fc895cc2c Mon Sep 17 00:00:00 2001 From: Joscha Feth Date: Tue, 1 Apr 2025 12:21:14 +0100 Subject: [PATCH] fix(types): `PropOptions` don't need to be writable. This should be allowed: ```ts const EventTypes = ["default", "focusTime", "outOfOffice", "workingLocation"] as const; // ... eventTypes: { type: "string[]", default: ["default"], label: "Event Types", description: "Filter events by event type", optional: true, options: EventTypes, }, // ... ``` --- types/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/src/index.ts b/types/src/index.ts index efcf1b25083d7..96bf98ceba25b 100644 --- a/types/src/index.ts +++ b/types/src/index.ts @@ -221,7 +221,7 @@ export interface BasePropInterface { description?: string; } -export type PropOptions = any[] | Array<{ [key: string]: string; }>; +export type PropOptions = Readonly>; // https://pipedream.com/docs/components/api/#user-input-props export interface UserProp extends BasePropInterface {