@diphyx/harlemify 6.3.0 → 6.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -54,6 +54,7 @@ export interface ActionApiCommitContext<MD extends ModelDefinitions, VD extends
|
|
|
54
54
|
query: Readonly<Record<string, unknown>>;
|
|
55
55
|
body: unknown;
|
|
56
56
|
}>;
|
|
57
|
+
params: Readonly<Record<string, string | number>>;
|
|
57
58
|
view: DeepReadonly<StoreView<MD, VD>>;
|
|
58
59
|
}
|
|
59
60
|
export interface ActionApiCommit<MD extends ModelDefinitions, VD extends ViewDefinitions<MD>, K extends keyof MD = keyof MD> {
|
|
@@ -136,7 +137,7 @@ export interface ActionCallCommitOptions {
|
|
|
136
137
|
mode?: ModelOneMode | ModelManyMode | Record<string, ModelOneMode | ModelManyMode>;
|
|
137
138
|
}
|
|
138
139
|
export interface ActionApiCallOptions extends ActionCallBaseOptions {
|
|
139
|
-
params?: Record<string, string>;
|
|
140
|
+
params?: Record<string, string | number>;
|
|
140
141
|
headers?: Record<string, string>;
|
|
141
142
|
query?: Record<string, unknown>;
|
|
142
143
|
body?: unknown;
|
|
@@ -297,6 +297,7 @@ export function createAction(definition, model, view) {
|
|
|
297
297
|
);
|
|
298
298
|
const context = {
|
|
299
299
|
request: { url, method, headers, query, body },
|
|
300
|
+
params: options?.params ?? {},
|
|
300
301
|
view
|
|
301
302
|
};
|
|
302
303
|
data = executeCommit(definition, model, response, context, options);
|