Skip to content

Commit

Permalink
[Set] 파라미터에 타입 지정 #32
Browse files Browse the repository at this point in the history
why
어떤 형태로 쿼리를 넣고 반환받는지가 애매함

how
쿼리를 파싱해주는 함수에 타입지정
  • Loading branch information
WooYeonSeo committed Nov 26, 2019
1 parent 17da564 commit 6de5201
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/src/api/feed/feed.resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ interface IPageParam {
cursor: string;
}

const parseResult = result => {
const parseResult = (
result: Array<IKey<any>>
): Array<IKey<string | number>> => {
const returnArr: Array<IKey<string | number>> = [];
for (const item of result) {
let i = 0;
Expand Down

0 comments on commit 6de5201

Please sign in to comment.