Added @type alias, separated constants.ts file

This commit is contained in:
2021-07-15 20:05:30 +05:00
parent 74b3cc725d
commit 02453c8cf6
10 changed files with 20 additions and 12 deletions

View File

@ -1,5 +1,5 @@
import { IBook } from "../types/book";
import { isArrOfStr } from "../types/utils";
import { IBook } from "@type/book";
import { isArrOfStr } from "@type/utils";
export const saveBook = (bookObj: IBook, key: string): void => {
const bookListStr = localStorage.getItem("list") || "[]";