Skip to content

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

Closed
@limsbeheer

Description

@limsbeheer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions