Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/constants/searchParams.constant.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const SORT_TYPE = {
작성일순: '',
조회순: 'dailyViewCount',
조회변동순: 'viewGrowth',
좋아요순: 'dailyLikeCount',
} as const;
2 changes: 1 addition & 1 deletion src/types/searchParams.type.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { SORT_TYPE } from '@/constants';

export type SortKey = '작성일순' | '조회순' | '좋아요순';
export type SortKey = '작성일순' | '조회순' | '조회변동순' | '좋아요순';
export type SortValue = (typeof SORT_TYPE)[keyof typeof SORT_TYPE];

export type SortType = Record<SortKey, string>;