@valten/regulex-visualizer 1.0.0 → 1.0.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.d.ts +13 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valten/regulex-visualizer",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "A Vue component for visualizing regular expressions",
5
5
  "keywords": [
6
6
  "vue",
package/src/index.d.ts ADDED
@@ -0,0 +1,13 @@
1
+ // index.d.ts
2
+ import { DefineComponent, App } from 'vue';
3
+
4
+ // 1. 定义组件的类型
5
+ // 如果你的组件有 Props,可以将 {} 替换为具体的接口
6
+ declare const RegulexVisualizer: DefineComponent<{}, {}, any>;
7
+
8
+ // 2. 导出具名组件
9
+ export { RegulexVisualizer };
10
+
11
+ // 3. (可选) 如果你支持 Vue.use() 全局安装,导出插件类型
12
+ declare const install: (app: App) => void;
13
+ export default install;