Skip to content

Commit

Permalink
docs: Fix Endpoint def in readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Jul 15, 2020
1 parent 83bc4db commit 125ad57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/README.md
Expand Up @@ -28,7 +28,7 @@ class Article extends Entity {

const ArticleDetail = new Endpoint(
({ id }: { id: string }) => fetch(`http://test.com/articles/${id}`)).then(res => res.json()),
schema: Article,
{ schema: Article },
}
```

Expand Down
2 changes: 1 addition & 1 deletion packages/rest-hooks/package.json
@@ -1,7 +1,7 @@
{
"name": "rest-hooks",
"version": "5.0.0-i.1",
"description": "Delightful data fetching for React",
"description": "Dynamic data fetching for React",
"sideEffects": false,
"main": "dist/index.cjs.js",
"module": "lib/index.js",
Expand Down

0 comments on commit 125ad57

Please sign in to comment.