hunk.code_window:   index: number
   ) => Offset
   export type pagesResponseInterface = {
     pages: any
     pageCount: number
  
hunk.labels: keep keep keep replace keep keep
hunk.after_edit: export type pagesResponseInterface<Data, Error> = {
  
hunk.file_path: src/types.ts
hunk.type: replace
file: // an endpoint for getting user info
  export default (req, res) => {
    if (req.cookies['swr-test-token'] === 'swr') {
      // authorized
      res.json({
        loggedIn: true,
        name: 'Shu',
        avatar: 'https://github.com/quietshu.png'
      })
      return
    }
  
    res.json({
      loggedIn: false
    })
  }
  