From aa7b1eb146696cc09d995c13125394f47f768416 Mon Sep 17 00:00:00 2001 From: Mikhail Krilov <65118092+mitapfer@users.noreply.github.com> Date: Thu, 29 Feb 2024 19:36:47 +0500 Subject: [PATCH] Fix spelling mistakes (#326) --- src/combine-events/readme.md | 2 +- src/debug/readme.md | 4 ++-- src/delay/readme.md | 4 ++-- src/in-flight/readme.md | 2 +- src/pending/readme.md | 4 ++-- src/spread/readme.md | 6 +++--- src/time/readme.md | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/combine-events/readme.md b/src/combine-events/readme.md index 706a3883..6ce053ac 100644 --- a/src/combine-events/readme.md +++ b/src/combine-events/readme.md @@ -82,7 +82,7 @@ const target = combineEvents({ ### Returns -- `target` — When `target` option is not defined, will return new event with the same shape as `events`, otherwise `target` unit will returns +- `target` — When `target` option is not defined, will return new event with the same shape as `events`, otherwise `target` unit will return ### Example diff --git a/src/debug/readme.md b/src/debug/readme.md index 6b5d28b1..b340354e 100644 --- a/src/debug/readme.md +++ b/src/debug/readme.md @@ -157,8 +157,8 @@ debug.unregisterAllScopes(); ### Initial store state -`debug($store)` always immediatly prints current state of the store, but this state can be different in different scopes. -It is recommened to register scopes explicitly, since `debug` will print current state of the store in every known scope: +`debug($store)` always immediately prints current state of the store, but this state can be different in different scopes. +It is recommended to register scopes explicitly, since `debug` will print current state of the store in every known scope: ```ts const $count = createStore(0); diff --git a/src/delay/readme.md b/src/delay/readme.md index 6736c3f4..70ac7a8d 100644 --- a/src/delay/readme.md +++ b/src/delay/readme.md @@ -201,7 +201,7 @@ Use `delay({ source, timeout })` with patronum < 2.1.0 ### Motivation This overload allows you to read timeout from another store. -It is useful when you writing music editor and need dynamic delay for your events. +It is useful when you write music editor and need dynamic delay for your events. ### Formulae @@ -243,7 +243,7 @@ update('Hello'); ### Motivation This overload allows you to read timeout from another store. -It is useful when you writing music editor and need dynamic delay for your events. +It is useful when you write music editor and need dynamic delay for your events. ### Formulae diff --git a/src/in-flight/readme.md b/src/in-flight/readme.md index 8fa63583..2aa20cd0 100644 --- a/src/in-flight/readme.md +++ b/src/in-flight/readme.md @@ -64,7 +64,7 @@ loadSecond(); ### Motivation This overload allows to count effects in flight of the whole domain. -It is usef when you want to show loading state of the whole application. +It is useful when you want to show loading state of the whole application. ### Formulae diff --git a/src/pending/readme.md b/src/pending/readme.md index e7d71d85..be18ea2f 100644 --- a/src/pending/readme.md +++ b/src/pending/readme.md @@ -71,7 +71,7 @@ $inProcess = pending({ effects: [fx1, fx2], of: Strategy }); 1. `effects` `(Array>)` - array of any effects 1. `of` `("some" | "every")` — Optional. Select strategy of combining pendings - of differents effects. Default `"some"` + of different effects. Default `"some"` :::note since The `of` argument was added since patronum 1.1.0 @@ -127,7 +127,7 @@ $inProcess = pending({ domain, of: Strategy }); 1. `domain` `(Domain)` - Effector domain with at least one effect 1. `of` `("some" | "every")` — Optional. Select strategy of combining pendings - of differents effects. Default `"some"` + of different effects. Default `"some"` ### Returns diff --git a/src/spread/readme.md b/src/spread/readme.md index e4ed3615..27bdf9b7 100644 --- a/src/spread/readme.md +++ b/src/spread/readme.md @@ -27,7 +27,7 @@ source = spread({ field: target, ... }) - When `source` is triggered with **object**, extract `field` from data, and trigger `target` - `targets` can have multiple properties - If the `source` was triggered with non-object, nothing would be happening -- If `source` is triggered with object but without propertpy `field`, target for this `field` will not be triggered +- If `source` is triggered with object but without property `field`, target for this `field` will not be triggered ### Arguments @@ -117,7 +117,7 @@ spread({ source, targets: { field: target, ... } }) - When `source` is triggered with **object**, extract `field` from data, and trigger `target` - `targets` can have multiple properties - If the `source` was triggered with non-object, nothing would be happening -- If `source` is triggered with object but without propertpy `field`, target for this `field` will not be triggered +- If `source` is triggered with object but without property `field`, target for this `field` will not be triggered ### Arguments @@ -202,7 +202,7 @@ source = spread({ targets: { field: target, ... } }) - When `source` is triggered with **object**, extract `field` from data, and trigger `target` - `targets` can have multiple properties - If the `source` was triggered with non-object, nothing would be happening -- If `source` is triggered with object but without propertpy `field`, target for this `field` will not be triggered +- If `source` is triggered with object but without property `field`, target for this `field` will not be triggered ### Arguments diff --git a/src/time/readme.md b/src/time/readme.md index e40bb91c..e54be12f 100644 --- a/src/time/readme.md +++ b/src/time/readme.md @@ -87,7 +87,7 @@ $time = time({ clock, getNow, initial }); ### Returns `$time: Store