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

Property 'dpWrapMenuRef' of type 'Ref<HTMLElement | null, HTMLElement | null>' is not assignable to 'string' index type 'Function'. #1053

Open
limsbeheer opened this issue Nov 28, 2024 · 0 comments
Labels
awaiting triage The issue is not reviewed by the maintainers bug Something isn't working

Comments

@limsbeheer
Copy link

limsbeheer commented Nov 28, 2024

Describe the bug
tsc --build fails with error Property 'dpWrapMenuRef' of type 'Ref<HTMLElement | null, HTMLElement | null>' is not assignable to 'string' index type 'Function'.
Interface PublicMethods inherits from MethodOptions and here is defined [key:string]: Function, so always a function is expected and type Ref<HTMLElement | null, HTMLElement | null> is not assignable to type Function.

To Reproduce
Steps to reproduce the behavior:

  1. Use the following tsconfig.json:
{
  "compilerOptions": {
    "allowSyntheticDefaultImports": true,
    "allowUmdGlobalAccess": true,
    "allowUnreachableCode": false,
    "allowUnusedLabels": false,
    "exactOptionalPropertyTypes": true,
    "forceConsistentCasingInFileNames": false,
    "incremental": true,
    "lib": [
      "ESNext",
      "DOM"
    ],
    "module": "ESNext",
    "moduleResolution": "Node",
    "noEmitOnError": true,
    "noUnusedLocals": true,
    "noFallthroughCasesInSwitch": true,
    "noUnusedParameters": true,
    "removeComments": true,
    "strict": true,
    "target": "ESNext"
  }
}
  1. Add "@vuepic/vue-datepicker": "10.0.0", to dependencies in package.json.
  2. Execute tsc --build.

Expected behavior
No build errors.

Screenshots
n.a.

Desktop & mobile (please complete the following information):

  • Library version: 10.0.0
@limsbeheer limsbeheer added awaiting triage The issue is not reviewed by the maintainers bug Something isn't working labels Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting triage The issue is not reviewed by the maintainers bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant