File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -72,9 +72,9 @@ interface ActionRequestBody {
72
72
}
73
73
74
74
// Base body from requests for classic smart action routes
75
- interface SmartActionRequestBody {
75
+ interface SmartActionRequestBody < T extends Record < string , any > = Record < string , any > > {
76
76
data : {
77
- attributes : ActionRequestAttributes & { values : Record < string , any > } ,
77
+ attributes : ActionRequestAttributes & { values : T } ,
78
78
type : 'custom-action-requests' ,
79
79
} ,
80
80
}
@@ -91,8 +91,8 @@ interface SmartActionHookRequestBody {
91
91
}
92
92
93
93
// Concrete smart action request for classic smart action routes
94
- export interface SmartActionRequest extends ForestRequest {
95
- body : SmartActionRequestBody ,
94
+ export interface SmartActionRequest < T extends Record < string , any > = Record < string , any > > extends ForestRequest {
95
+ body : SmartActionRequestBody < T > ,
96
96
}
97
97
98
98
// Request passed to smart action load hooks
You can’t perform that action at this time.
0 commit comments