Skip to content

How to import type of TableauEmbed? #35

@vallereaugabriel

Description

@vallereaugabriel

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?

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