Closed
Description
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:
- 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"
}
}
- Add
"@vuepic/vue-datepicker": "10.0.0",
todependencies
in package.json. - Execute
tsc --build
.
Expected behavior
No build errors.
Screenshots
n.a.
Desktop & mobile (please complete the following information):
- Library version: 10.0.0