Skip to content

Commit 8a0d9d0

Browse files
committed
add types
Signed-off-by: chiribuc <[email protected]>
1 parent 44c3013 commit 8a0d9d0

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"name": "@crob/vue-stack-grid",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "A simple, efficient Vue 3 component for creating stacked grid layouts. It automatically adjusts items into a grid based on available space, with customizable column widths and gutters for precise layout control. Ideal for fluid, responsive designs.",
55
"files": [
6-
"dist"
6+
"dist",
7+
"types"
78
],
89
"main": "dist/vue-stack-grid.umd.js",
910
"module": "dist/vue-stack-grid.esm.js",
@@ -13,6 +14,7 @@
1314
"require": "./dist/vue-stack-grid.umd.js"
1415
}
1516
},
17+
"types": "types/vue-stack-grid.d.ts",
1618
"scripts": {
1719
"build": "rollup -c",
1820
"test": "jest"

types/vue-stack-grid.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// vue-stack-grid.d.ts
2+
declare module '@crob/vue-stack-grid' {
3+
import { DefineComponent } from 'vue';
4+
const StackGrid: DefineComponent<{}, {}, any>;
5+
export default StackGrid;
6+
}

0 commit comments

Comments
 (0)