Skip to content
This repository was archived by the owner on Jun 15, 2021. It is now read-only.

Commit 3d16e26

Browse files
committed
docs(readme): Corrects readme docs.
1 parent a7c025a commit 3d16e26

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

readme.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ export interface TodoEntity extends TodoId {
2525
### Facade Config
2626

2727
```ts
28+
import FacadeConfig from '@js-entity-repos/memory/dist/Config';
29+
2830
interface State {
2931
todos: TodoEntity[];
3032
}
3133

32-
const state = { todos: [] };
33-
const todoFacadeConfig = {
34+
const state: State = { todos: [] };
35+
const todoFacadeConfig: FacadeConfig = {
3436
getEntities: () => state.todos,
3537
setEntities: (todos) => state.todos = todos,
3638
entityName: 'todo',

0 commit comments

Comments
 (0)