Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

Commit

Permalink
chore(type): rename to gradeSet
Browse files Browse the repository at this point in the history
  • Loading branch information
mu-hun committed Nov 14, 2019
1 parent 6b6042b commit ac22ca4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/@types/dreamy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type tUnivs =
| '예술대자인대학'
| '미래융합대학'

export interface grade {
export interface gradeSet {
credit: 0 | 2 | 3 | 4
dg_gb:
| 'A+'
Expand Down
4 changes: 2 additions & 2 deletions src/utils/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
listItem,
personalInfo,
parent_grade_props,
grade,
gradeSet,
current_searched_grade_summary,
} from '../@types/dreamy'
import {
Expand Down Expand Up @@ -92,7 +92,7 @@ const postList = (data: TypeList): PostprocessedList => ({
})

const postItem = (data: TypeSearch): PostprocessedItem => ({
GRID_DATA: TwoDepthLiteralArray(data.GRID_DATA) as grade[],
GRID_DATA: TwoDepthLiteralArray(data.GRID_DATA) as gradeSet[],
BOTTOM_DATA: oneDepthLiteral(
data.BOTTOM_DATA
) as current_searched_grade_summary,
Expand Down

0 comments on commit ac22ca4

Please sign in to comment.