Skip to content
This repository was archived by the owner on Jul 24, 2025. It is now read-only.
This repository was archived by the owner on Jul 24, 2025. It is now read-only.

Typescript definition of fetch method incorrect #706

@abraxxa

Description

@abraxxa

fetch(options: FetchOptions): Promise<any>;

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 |

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions