Page 1 of 1

[REACT] Wrong type for FetchOptions

Posted: Wed Feb 01, 2023 9:10 pm
by tulioassis

Hey, I can see that the type for credentials inside fetchOptions is object but the examples shows as string. Should we change it on the code to keep consistency?

From client\node_modules\@bryntum\gantt\gantt.d.ts

    type FetchOptions = {
        method?: 'GET'|'POST'|'PUT'|'PATCH'|'DELETE'
        queryParams?: object
        headers?: object
        body?: object
        mode?: object
        credentials?: object
        parseJson?: object
    }

See credentials as string:
https://www.bryntum.com/products/gantt/docs/api/Core/data/AjaxStore#config-fetchOptions


Re: [REACT] Wrong type for FetchOptions

Posted: Wed Feb 01, 2023 9:50 pm
by marcio

Hey tulioassis,

Thanks for the report, I created a ticket to update that type/documentation https://github.com/bryntum/support/issues/6092