@shift-css/core 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/types/vue.d.ts ADDED
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Shift CSS - Vue Type Definitions
3
+ *
4
+ * Module augmentation for Vue 3 templates to support Shift CSS attributes.
5
+ * Works with Volar (Vue Language Tools) for template type checking.
6
+ *
7
+ * Usage:
8
+ * Add to your tsconfig.json:
9
+ * {
10
+ * "compilerOptions": {
11
+ * "types": ["@shift-css/core/types/vue"]
12
+ * }
13
+ * }
14
+ *
15
+ * Or add a reference in a .d.ts file:
16
+ * /// <reference types="@shift-css/core/types/vue" />
17
+ */
18
+
19
+ import type { ShiftAttributes } from './attributes';
20
+
21
+ // Augment Vue's global component props
22
+ declare module 'vue' {
23
+ interface ComponentCustomProps extends ShiftAttributes {}
24
+ }
25
+
26
+ // Augment @vue/runtime-dom for template type checking
27
+ declare module '@vue/runtime-dom' {
28
+ interface HTMLAttributes extends ShiftAttributes {}
29
+ }