From aadeb4f051dbca3146be438cda90e7e99ed6948c Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 26 Jun 2026 21:09:32 +0300 Subject: [PATCH] updated docs... Signed-off-by: Alex A. Naanou --- README.md | 9 +++++++-- package-lock.json | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index afeed18..98ce171 100644 --- a/README.md +++ b/README.md @@ -2201,14 +2201,19 @@ relevant items in the input are either non-promises or ``s. #### `Promise.awaitOrRun(..)` -Await for inputs if any of them is a promise and then run a function with -the results, otherwise run the function in sync. +Await for inputs passing their resolved values to a function, either +directly returning the result, if none of the inputs was a promise (sync), +or returning a promise resolving to the function's return value, if any of +the inputs was a promise. ```dnf Promise.awaitOrRun(, [, ]) Promise.awaitOrRun(, .. , [, ]) -> -> + +(, .. ) + -> value ``` Note that if the last `` is a function and no `` function diff --git a/package-lock.json b/package-lock.json index 96b8360..e474b48 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ig-types", - "version": "6.24.17", + "version": "6.26.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ig-types", - "version": "6.24.17", + "version": "6.26.2", "license": "BSD-3-Clause", "dependencies": { "ig-object": "^6.0.0",