You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: see more samples in the [`tests`](https://github.com/objectwow/join/blob/main/tests/core.spec.ts) and ['test-by-cases](https://github.com/objectwow/join/blob/main/test-by-cases)
172
+
Note: see more samples in the [`tests`](https://github.com/objectwow/join/blob/main/tests/core.spec.ts) and [`test-by-cases`](https://github.com/objectwow/join/blob/main/test-by-cases)
66
173
67
174
```typescript
175
+
/**
176
+
* Parameters for the `joinData` function to perform joins between local data and source data.
177
+
*/
68
178
exportinterfaceJoinDataParam {
69
179
/**
70
-
* Local object or an array of local objects to be joined.
180
+
* Local object or array of local objects to be joined.
71
181
*/
72
182
local:LocalParam;
73
183
74
184
/**
75
-
* A callback (async) function that returns the data from the source.
76
-
* Data is object or an array of objects
185
+
* Object(s) or an asynchronous callback function that returns the data from the source.
77
186
*/
78
-
from:(...args:any[]) =>any;
187
+
from:FromParam;
79
188
80
189
/**
81
-
* The field name in the local object(s) used for the join,
82
-
* can be a nested field, separated by a dot ('.')
190
+
* Field name in the local object(s) used for the join.
83
191
*/
84
192
localField:string;
85
193
86
194
/**
87
-
* The field name in the from object used for the join,
88
-
* can be a nested field, separated by a dot ('.')
195
+
* Field name in the `from` object(s) used for the join.
89
196
*/
90
197
fromField:string;
91
198
92
199
/**
93
-
* An optional new field name to store the result of the join in the local object(s).
200
+
* Optional new field name to store the result of the join in the local object(s).
94
201
*/
95
202
as?:string;
96
203
97
204
/**
98
-
* An optional mapping from the from object(s) values to the new field names in the local object(s).
205
+
* Optional mapping from the `fromField` values to new field names in the local object(s).
If you have any questions, feel free to open an [`open an issue on GitHub`](https://github.com/objectwow/join/issues) or connect with me on [`Linkedin`](https://www.linkedin.com/in/vtuanjs/).
0 commit comments