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

Missing type def for tooltipBodyId attr #40

Open
LumaKernel opened this issue Aug 22, 2021 · 0 comments
Open

Missing type def for tooltipBodyId attr #40

LumaKernel opened this issue Aug 22, 2021 · 0 comments

Comments

@LumaKernel
Copy link

Tooltip's tooltipBodyId does not appear in type definition.

The cause may be here:

aria-describedby="{$$props['tooltipBodyId']}"

export let ... style is not used.

When I use tooltipBodyId, error is reported by svelte language server in lang=ts.

It'll also issued by svelte-check.

Error: Type '{ open: boolean; tooltipBodyId: string; hideIcon: true; }' is not assignable to type 'IntrinsicAttributes & TooltipProps'.
  Property 'tooltipBodyId' does not exist on type 'IntrinsicAttributes & TooltipProps'. (ts)

<Tooltip {open} tooltipBodyId="tooltip-body" hideIcon>
  <p id="tooltip-body">Copied!</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant