Vue-slider-component: JSDoc types can only be used inside documentation comments

Created on 31 Jul 2019  路  3Comments  路  Source: NightCatSama/vue-slider-component

Describe the bug

ERROR in C:/**/node_modules/vue-slider-component/typings/typings/index.d.ts

63:52 JSDoc types can only be used inside documentation comments.
62 | // Process

63 | export type ProcessOption = Array<[number, number, Styles?]>
64 | export type ProcessFunc = (dotsPos: number[]) => ProcessOption
65 | export type ProcessProp = boolean | ProcessFunc
66 | export interface Process {
Version: typescript 2.9.2, tslint 5.10.0
.

Environment (If you feel unrelated, please delete the block)

  • OS & Version: Windows
  • Vue version: v2.5.16
  • Component Version: v3.0.33
bug

All 3 comments

@NightCatSama thanks, it seems like upgrading Typescript version solved this problem. So you do not support typescript version <3.0.0, right?

@aashrafu Yes

If most people use typescript < 3.0, I can also consider a different way of writing.

But it's better to upgrade, now it's 3.5, and there's no harm in upgrading.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

isaacjoy picture isaacjoy  路  4Comments

exodusanto picture exodusanto  路  6Comments

senner007 picture senner007  路  5Comments

adrianolobo picture adrianolobo  路  4Comments

Rrrafau picture Rrrafau  路  4Comments