Skip to content

Commit

Permalink
refactor : as const 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
pipisebastian committed Jan 16, 2024
1 parent 7e0ff77 commit 8e04d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/libraryApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import axios from 'axios';
import { BookInfo, BorrowedBookInfo, BookListSearch, PageAndSize } from './dto';

const libraryKeys = {
base: ['books'],
base: ['books'] as const,
bookList: (params: BookListSearch) => [...libraryKeys.base, params] as const,
borrowedBookList: () => [...libraryKeys.base, 'bookBorrows'] as const,
};
Expand Down

0 comments on commit 8e04d55

Please sign in to comment.