import * as fs from "fs" ; import User from "../classes/User" ; import ICookies from "../interfaces/Cookies" ; function readUsers ( filePath ) { const res = JSON . parse ( fs . readFileSync ( filePath , "utf-8" ) ) . users . map ( ( v ) => new User ( v ) ) ; return res ; } export default readUsers ;