lindell / vue-barcode

Barcode generator for Vue.js
MIT License
220 stars 26 forks source link

Global Import Warning #25

Open celidrissi opened 4 years ago

celidrissi commented 4 years ago

Hello,

I found that i have a warning when i import globaly :

Argument type {data: (function(): {valid: boolean}), render: (function(any): any), mounted: VueBarcode.mounted, props: {margin: [String | StringConstructor, Number | NumberConstructor], textPosition: [String | StringConstructor], textMargin: [String | StringConstructor, Number | NumberConstructor], textAlign: [String | StringConstructor], format: [String | StringConstructor], fontOptions: [String | StringConstructor], lineColor: [String | StringConstructor], elementTag: {default: string, validator: (function(any=): boolean), type: StringConstructor}, marginLeft: [String | StringConstructor, Number | NumberConstructor], marginRight: [String | StringConstructor, Number | NumberConstructor], displayValue: {default: boolean, type: [String | StringConstructor, Boolean | BooleanConstructor]}, ...}} is not assignable to parameter type ThisTypedComponentOptionsWithArrayProps | undefined   Type VueBarcode.mounted is not assignable to type () => void

Capture d’écran 2020-05-14 à 15 28 20