Skip to content

Commit

Permalink
[kiworkshop#22] Remove type error of generator
Browse files Browse the repository at this point in the history
  • Loading branch information
myeongjae-kim committed Oct 27, 2019
1 parent 20876da commit 9e8949c
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 76 deletions.
127 changes: 58 additions & 69 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"react-redux": "^7.1.0",
"redux": "^4.0.4",
"redux-form": "^8.2.5",
"redux-saga": "^1.0.5",
"redux-saga": "^1.1.1",
"reflect-metadata": "^0.1.13",
"remove": "^0.1.5",
"tsconfig-paths": "^3.8.0",
Expand Down Expand Up @@ -76,6 +76,6 @@
"tslint-react": "^4.0.0",
"tslint-react-hooks": "^2.2.1",
"tslint-sonarts": "^1.9.0",
"typescript": "3.5.3"
"typescript": "3.6.4"
}
}
}
2 changes: 1 addition & 1 deletion src/mother/notice/presentation/state-module/detail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function* saga() {
yield takeLatest(getType(deleteNotice), sagaDeleteNotice);
}

function* sagaFetchNotice(action: ActionType<typeof fetchNotice>): Generator {
function* sagaFetchNotice(action: ActionType<typeof fetchNotice>) {
yield put(fetchNoticeAsync.request())
const { id } = action.payload
try {
Expand Down
4 changes: 2 additions & 2 deletions src/mother/notice/presentation/state-module/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function* saga() {
yield takeLatest(getType(putNotice), sagaPutNotice);
}

function* sagaFetchInitialNotice(action: ActionType<typeof fetchInitialNotice>): Generator {
function* sagaFetchInitialNotice(action: ActionType<typeof fetchInitialNotice>) {
yield put(fetchInitialNoticeAsync.request())
const { id } = action.payload
try {
Expand All @@ -141,7 +141,7 @@ function* sagaFetchInitialNotice(action: ActionType<typeof fetchInitialNotice>):
}
}

function* sagaPostNotice(action: ActionType<typeof postNotice>): Generator {
function* sagaPostNotice(action: ActionType<typeof postNotice>) {
yield put(postNoticeAsync.request())
const { noticeFormDto } = action.payload;
try {
Expand Down
2 changes: 1 addition & 1 deletion src/mother/notice/presentation/state-module/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function* saga() {
yield takeLatest(getType(fetchNoticePage), sagaFetchNotice);
}

function* sagaFetchNotice(): Generator {
function* sagaFetchNotice() {
yield put(fetchNoticePageAsync.request())
try {
const page: Page<Notice> = yield call(NoticeServiceImpl.getNoticePage, { page: 1, size: 1 << 31 - 1 });
Expand Down

0 comments on commit 9e8949c

Please sign in to comment.