Open RagazziMoscow opened 4 years ago
I solved this problem by adding a new declaration for hooper
to type declarations file in project:
declare module 'hooper' {
import { FunctionalComponentOptions } from 'vue'
export const Hooper: FunctionalComponentOptions
export const Slide: FunctionalComponentOptions
export const Navigation: FunctionalComponentOptions
}
It works. This issue can be closed.
I think this issue needs to be open until official support is added or someone creates @types/hopper.
I added another entry to @RagazziMoscow module:
// hooper.d.ts
declare module 'hooper' {
import { FunctionalComponentOptions } from 'vue'
export const Hooper: FunctionalComponentOptions
export const Slide: FunctionalComponentOptions
export const Navigation: FunctionalComponentOptions
export const Pagination: FunctionalComponentOptions // new entry for pagination
}
I decided to migrate on Typescript with
strict
mode. Now i get an error during the compilationTo Reproduce Steps to reproduce the behavior:
tsconfig.json
strict: true
optionExpected behavior There is no any errors
Actual behavior
Does anyone have idea how to write the declaration for not getting this error ?