Skip to content

Commit a26ab9f

Browse files
committed
chore: readme tweaks
Signed-off-by: tunnckoCore <5038030+tunnckoCore@users.noreply.github.com>
1 parent f1feebb commit a26ab9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -609,9 +609,9 @@ const fn1 = zaWithEnv
609609
.callable({ env: process.env })
610610
````
611611

612-
Keep in mind that if you have `autoCallable: true` in enabled in the instance, then you may need to provide the runtime env vars through the second argument, otherwise the types will say you have something, but in runtime you will get error.
612+
Keep in mind that if you have `autoCallable: true` enabled in the instance, then you may need to provide the runtime env vars through the second argument, otherwise the types will say you have something, but in runtime you will get error.
613613

614-
Also important to note that when `disableOptions` you will loose access to the `env` vars, as well `context` and `errors`.
614+
Also important to note that when `disableOptions` you will loose access to the `env` vars, as well `context` and `errors` which is normal behavior.
615615

616616
### Handler Options Object
617617

@@ -725,7 +725,7 @@ Creates a new Zagora instance.
725725
- `.context<TInitialContext>(initialContext)` - Type the context with generic, and optionally set initial context
726726
- `.cache(adapter)` - Set cache adapter that should have `has`, `get`, `set`, methods
727727
- `.handler(fn)` - Set handler/procedure function
728-
- `.env(schema, processEnv?)` - Set handler/procedure function
728+
- `.env(schema, processEnv?)` - Set env vars schema, and optionally runtime envs.
729729
- `.callable(opts?: { context?, cache?, env? })` - Create callable procedure
730730
+ passed `context` (if any) will be deep-merged with the `initialContext` (if any)
731731
+ if `cache` passed, it will override the previously passed through `.cache` method (if so)

0 commit comments

Comments
 (0)