vue-auth icon indicating copy to clipboard operation
vue-auth copied to clipboard

Typescript definition of fetch method incorrect

Open abraxxa opened this issue 11 months ago • 0 comments

https://github.com/websanova/vue-auth/blob/1b3fba4c7b55b0ca4c09b1dc25ac1e1a033a1bdf/types/index.d.ts#L148

The options should be optional.

ERROR(vue-tsc)  Expected 1 arguments, but got 0.
 FILE  /home/foo/bar/app/src/pages/usergroup/List.vue:175:13

    173 | function onUsergroupUpdate () {
    174 |   void getUsergroups()
  > 175 |   void auth.fetch()
        |             ^^^^^
    176 |   close()
    177 | }
    178 |

abraxxa avatar Dec 04 '24 22:12 abraxxa