Skip to content

Commit

Permalink
Merge pull request #312 from artalar/#311
Browse files Browse the repository at this point in the history
  • Loading branch information
artalar committed Mar 6, 2020
2 parents d141e9a + f5d713d commit f1b71a4
Show file tree
Hide file tree
Showing 18 changed files with 5,156 additions and 6,043 deletions.
3 changes: 0 additions & 3 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
tasks:
- init: npm install
- command: npm run test:watch
- command: npm run prettify:watch
openMode: split-right
69 changes: 34 additions & 35 deletions SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,36 @@
# Table of contents

* [README](README.md)
* [packages](packages/README.md)
* [README](packages/babel-plugin/README.md)
* [README](packages/react/README.md)
* [README](packages/core/README.md)
* [tools](packages/core/tools/README.md)
* [snapshot](packages/core/tools/snapshot.md)
* [README](packages/observable/README.md)
* [README](packages/debug/README.md)
* [README](docs/README.md)
* [packages](docs/packages/README.md)
* [@reatom/debug](docs/packages/debug.md)
* [@reatom/babel-plugin](docs/packages/babel-plugin.md)
* [@reatom/react](docs/packages/react.md)
* [@reatom/observable](docs/packages/observable.md)
* [@reatom/core](docs/packages/core.md)
* [FAQ](docs/faq.md)
* [guides](docs/guides/README.md)
* [Naming Conventions](docs/guides/naming-conventions.md)
* [Server Side Rendering](docs/guides/server-side-rendering.md)
* [Inversion of control](docs/guides/IoC.md)
* [Migration from Redux](docs/guides/migration-from-redux.md)
* [Code Splitting](docs/guides/code-splitting.md)
* [File Structure](docs/guides/file-structure.md)
* [Contributing](docs/contributing.md)
* [examples](docs/examples.md)
* [\_background](docs/_background.md)
* [glossary](docs/glossary.md)
* [\_sidebar](docs/_sidebar.md)
* [LICENSE](LICENSE.md)
* [proposals](proposals.md)
* [CHANGELOG](CHANGELOG.md)
* [Contributing](CONTRIBUTING.md)
* [API](api.md)

- [README](README.md)
- [packages](packages/README.md)
- [README](packages/babel-plugin/README.md)
- [README](packages/react/README.md)
- [README](packages/core/README.md)
- [tools](packages/core/tools/README.md)
- [snapshot](packages/core/tools/snapshot.md)
- [README](packages/observable/README.md)
- [README](packages/debug/README.md)
- [README](docs/README.md)
- [packages](docs/packages/README.md)
- [@reatom/debug](docs/packages/debug.md)
- [@reatom/babel-plugin](docs/packages/babel-plugin.md)
- [@reatom/react](docs/packages/react.md)
- [@reatom/observable](docs/packages/observable.md)
- [@reatom/core](docs/packages/core.md)
- [FAQ](docs/faq.md)
- [guides](docs/guides/README.md)
- [Naming Conventions](docs/guides/naming-conventions.md)
- [Server Side Rendering](docs/guides/server-side-rendering.md)
- [Inversion of control](docs/guides/IoC.md)
- [Migration from Redux](docs/guides/migration-from-redux.md)
- [Code Splitting](docs/guides/code-splitting.md)
- [File Structure](docs/guides/file-structure.md)
- [Contributing](docs/contributing.md)
- [examples](docs/examples.md)
- [\_background](docs/_background.md)
- [glossary](docs/glossary.md)
- [\_sidebar](docs/_sidebar.md)
- [LICENSE](LICENSE.md)
- [proposals](proposals.md)
- [CHANGELOG](CHANGELOG.md)
- [Contributing](CONTRIBUTING.md)
- [API](api.md)
8 changes: 5 additions & 3 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,29 @@ description: Reatom APIs

{% tabs %}
{% tab title="JavaScript" %}

```javascript
const update = declareAction()

update(42) // { type: 'action [1]', payload: 42 }
```

{% endtab %}

{% tab title="TypeScript" %}

```typescript
const update = declareAction<number>()

update(42) // { type: 'action [1]', payload: 42 }
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}

## Title

Description
{% endhint %}



1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d

<!-- markdownlint-enable -->
<!-- prettier-ignore-end -->

<!-- ALL-CONTRIBUTORS-LIST:END -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
2 changes: 1 addition & 1 deletion docs/_background.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@

```ts
type AND<T extends any[]> = {
step: ((...args: T) => any) extends ((x: infer X, ...xs: infer Xs) => any)
step: ((...args: T) => any) extends (x: infer X, ...xs: infer Xs) => any
? Xs extends []
? X
: X & AND<Xs>
Expand Down
1 change: 0 additions & 1 deletion docs/guides/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# guides

9 changes: 3 additions & 6 deletions docs/guides/migration-from-redux.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,9 @@ Subscribing to the store is similar to how you did it in Redux, but with small d
```js
import { createSelector } from 'reselect'

const onVisibleTodosUpdate = createSelector(
getVisibleTodos,
todosState => {
// ...do something
},
)
const onVisibleTodosUpdate = createSelector(getVisibleTodos, todosState => {
// ...do something
})

const unsubscribe = store.subscribe(() =>
onVisibleTodosUpdate(store.getState()),
Expand Down
1 change: 0 additions & 1 deletion docs/packages/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# packages

0 comments on commit f1b71a4

Please sign in to comment.