Skip to content

Commit 308564b

Browse files
committed
Tighten type on identity function
1 parent 656e2ed commit 308564b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/controls/src/widget_upload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class FileUploadModel extends CoreDOMWidgetModel {
2727
static serializers = {
2828
...CoreDOMWidgetModel.serializers,
2929
// use a dummy serializer for value to circumvent the default serializer.
30-
value: { serialize: (x: any) => x },
30+
value: { serialize: <T>(x: T): T => x },
3131
};
3232
}
3333

0 commit comments

Comments
 (0)