From 8e04d55542027ae16617f6c7b2f109be89624e75 Mon Sep 17 00:00:00 2001 From: pipisebastian Date: Tue, 16 Jan 2024 20:53:50 +0900 Subject: [PATCH] =?UTF-8?q?refactor=20:=20=20as=20const=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/libraryApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/libraryApi.ts b/src/api/libraryApi.ts index d89be737..431e1cb6 100644 --- a/src/api/libraryApi.ts +++ b/src/api/libraryApi.ts @@ -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, };