Skip to content

Commit 3cdaf5d

Browse files
authored
Update effects.ts
fix missing async (ts compiler wanted it)
1 parent 03bde03 commit 3cdaf5d

File tree

1 file changed

+1
-1
lines changed
  • packages/overmind-website/examples/guide/getstarted

1 file changed

+1
-1
lines changed

packages/overmind-website/examples/guide/getstarted/effects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default (ts, view) =>
99
import { Post } from './state'
1010
1111
export const jsonPlaceholder = {
12-
getPosts(): Promise<Post[]> {
12+
async getPosts(): Promise<Post[]> {
1313
return fetch('https://jsonplaceholder.typicode.com/posts')
1414
.then(response => response.json())
1515
}

0 commit comments

Comments
 (0)