Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"'exportDataType' does not exist in type 'BootstrapTableOptions'" #7483

Open
avarsava opened this issue Sep 3, 2024 · 0 comments
Open

"'exportDataType' does not exist in type 'BootstrapTableOptions'" #7483

avarsava opened this issue Sep 3, 2024 · 0 comments
Labels
help-wanted Issues we need or would love help from the community to resolve.

Comments

@avarsava
Copy link

avarsava commented Sep 3, 2024

Description

Hello,
I have upgraded bootstrap-table from 1.18.0 to 1.23.2.
My code compiled in the old version, and no longer does so in the new version.
Walking back versions, it stopped working at 1.18.1.
What is the correct syntax now? Or is this a bug?
The error is

error TS2769: No overload matches this call.
  Overload 1 of 2, '(options: BootstrapTableOptions): JQuery<HTMLElement>', gave the following error.
    Argument of type '{ exportDataType: string; }' is not assignable to parameter of type 'BootstrapTableOptions'.
      Object literal may only specify known properties, and 'exportDataType' does not exist in type 'BootstrapTableOptions'.
  Overload 2 of 2, '(method: string, ...parameters: any[]): any', gave the following error.
    Argument of type '{ exportDataType: string; }' is not assignable to parameter of type 'string'.

292         $('#external-changelog,#internal-changelog').bootstrapTable({
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
293           exportDataType: 'all'
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
294         });

https://examples.bootstrap-table.com/#extensions/export.html#view-source seems to use this syntax without issue?

Example(s)

No response

@avarsava avarsava added the help-wanted Issues we need or would love help from the community to resolve. label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help-wanted Issues we need or would love help from the community to resolve.
Projects
None yet
Development

No branches or pull requests

1 participant