react-tableau-embed-live icon indicating copy to clipboard operation
react-tableau-embed-live copied to clipboard

How to import type of TableauEmbed?

Open vallereaugabriel opened this issue 1 year ago • 0 comments

The interface is not exported in TableauEmbed/index.d.ts:

interface TableauEmbed extends OptionalTableauVizProps {
    sourceUrl: string;
    version?: string;
    loadingSpinner?: React.ReactElement;
}

And I don't seems to be able to use typeof with the default export.

I would like to be able to import this type (renamed as TableauEmbedProps) to use as:

export const MyCustomComponent = (props: TableauEmbedProps) =>
  <TableauEmbed {...props}>{...}</TableauEmbed>

How should I do that?

vallereaugabriel avatar Mar 21 '24 15:03 vallereaugabriel