Skip to content

fix(types): make createTooltip modifiers optional - #1110

Open
Hugohong258 wants to merge 1 commit into
Akryum:mainfrom
Hugohong258:fix-optional-tooltip-modifiers
Open

Hugohong258 wants to merge 1 commit into
Akryum:mainfrom
Hugohong258:fix-optional-tooltip-modifiers

Conversation

@Hugohong258

Copy link
Copy Markdown

The documented createTooltip(el, value) call works at runtime but fails TypeScript checking because the inferred declaration requires modifiers. Mark that parameter optional and add coverage for omitted modifiers and an explicit placement modifier.

Fixes #1083. The generated JavaScript artifacts are byte-for-byte identical before and after this annotation change.

Validation: the two-argument regression fails the source typecheck and a strict consumer check against the built CommonJS declaration before the fix; both pass afterward. The library build, all 33 Vitest tests, and ESLint for both changed files pass under Node 24.15.0 with the repository's pnpm 12.3.4. The build retains its existing mixed named/default export warning. Browser end-to-end tests and other interpreter/platform versions were not run. No generated files or lockfiles are changed. git diff --check passes.

@netlify

netlify Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for v-tooltip ready!

Name Link
🔨 Latest commit 29299ba
🔍 Latest deploy log https://app.netlify.com/projects/v-tooltip/deploys/6ad4c77da2176ec5d1ef42d4
😎 Deploy Preview https://deploy-preview-1110--v-tooltip.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

Type error: createTooltip modifiers should be optional

1 participant