@travetto/model-query 4.1.3 → 4.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-query",
3
- "version": "4.1.3",
3
+ "version": "4.1.4",
4
4
  "description": "Datastore abstraction for advanced query support.",
5
5
  "keywords": [
6
6
  "datastore",
@@ -63,8 +63,8 @@ export abstract class ModelQueryCrudSuite extends BaseModelSuite<ModelQueryCrudS
63
63
  const promises = todo1v.map(x => svc.updateOneWithQuery(Todo, x, { where: { version: todo1.version } }));
64
64
 
65
65
  const results = await Promise.allSettled(promises);
66
- const rejected = results.filter((x): x is PromiseRejectedResult => x.status === 'rejected');
67
- const fulfilled = results.filter((x): x is PromiseFulfilledResult<Todo> => x.status === 'fulfilled');
66
+ const rejected = results.filter(x => x.status === 'rejected');
67
+ const fulfilled = results.filter(x => x.status === 'fulfilled');
68
68
 
69
69
  for (const el of rejected) {
70
70
  assert(el.reason instanceof NotFoundError);