naver / egjs-grid

A component that can arrange items according to the type of grids
https://naver.github.io/egjs-grid/
Other
275 stars 17 forks source link

TypeError TS2322: is missing the following properties from type - Vue 3 - TypeScript #81

Open anguiano opened 1 year ago

anguiano commented 1 year ago

Description

TypeError when run 'type check' command

error TS2322: Type '{ gap: number; defaultDirection: string; columnRange: number[]; rowRange: number; sizeRange: number[]; isCroppedSize: boolean; displayedRow: number; autoResize: true; class: string; }' is not assignable to type 'ComponentProps<VueGridInterface<typeof JustifiedGrid>>'.
  Type '{ gap: number; defaultDirection: string; columnRange: number[]; rowRange: number; sizeRange: number[]; isCroppedSize: boolean; displayedRow: number; autoResize: true; class: string; }' is missing the following properties from type 'VueGridInterface<typeof JustifiedGrid>': $el, $_grid, $props, syncElements, and 6 more.

76     <JustifiedGrid

Steps to check or reproduce

"@egjs/vue-grid": "^1.11.2",
"vue": "^3.2.45"
"typescript": "^4.9.4",
"vite": "^4.0.4",
"vue-tsc": "^1.0.24"
daybrush commented 1 year ago

@anguiano

I check it. I am going to create vue3-grid. wait a munite.