Skip to content

Commit 4fbb954

Browse files
committed
Remove the generic from the editable file value
1 parent a701f71 commit 4fbb954

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/pluggable-widgets-tools/src/typings-generator/__tests__/outputs/file.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface MyWidgetContainerProps {
1111
id: string;
1212
file: DynamicValue<FileValue>;
1313
file2?: DynamicValue<FileValue>;
14-
file3: EditableFileValue<FileValue>;
14+
file3: EditableFileValue;
1515
description: EditableValue<string>;
1616
action?: ActionValue;
1717
}
@@ -32,7 +32,7 @@ export const fileNativeOutput = `export interface MyWidgetProps<Style> {
3232
style: Style[];
3333
file: DynamicValue<FileValue>;
3434
file2?: DynamicValue<FileValue>;
35-
file3: EditableFileValue<FileValue>;
35+
file3: EditableFileValue;
3636
description: EditableValue<string>;
3737
action?: ActionValue;
3838
}`;

packages/pluggable-widgets-tools/src/typings-generator/generateClientTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ function toClientPropType(
133133
case "image":
134134
return isNative ? "DynamicValue<NativeImage>" : prop.$.allowUpload === "true" ? "EditableImageValue<WebImage>" : "DynamicValue<WebImage>";
135135
case "file":
136-
return prop.$.allowUpload ? "EditableFileValue<FileValue>" : "DynamicValue<FileValue>";
136+
return prop.$.allowUpload ? "EditableFileValue" : "DynamicValue<FileValue>";
137137
case "datasource":
138138
return "ListValue";
139139
case "attribute": {

0 commit comments

Comments
 (0)