Skip to content

Commit

Permalink
Show types re-using between client and server
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Sep 8, 2024
1 parent 6c53e99 commit 8a45aba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ loading.classList.remove('is-show')
Using [Logux Server](https://github.com/logux/server/):

```js
addSyncMap(server, 'tasks', {
addSyncMap<TaskValue>(server, 'tasks', {
async access (ctx, id) {
const task = await Task.find(id)
return ctx.userId === task.authorId
Expand Down

0 comments on commit 8a45aba

Please sign in to comment.