reactive-vscode
Advanced tools
Comparing version 0.0.0 to 0.0.1-beta.1
@@ -40,3 +40,2 @@ export * from './useAbsolutePath'; | ||
export * from './useTreeView'; | ||
export * from './useTreeViewWithParent'; | ||
export * from './useUri'; | ||
@@ -43,0 +42,0 @@ export * from './useViewBadge'; |
@@ -1,8 +0,7 @@ | ||
import type { ProviderResult, TreeDataProvider, TreeView, TreeViewOptions } from 'vscode'; | ||
import type { MaybeRefOrGetter } from '@vue/runtime-core'; | ||
import type { TreeDataProvider, TreeView, TreeViewOptions } from 'vscode'; | ||
export interface TreeViewNode { | ||
readonly children?: ProviderResult<this[]>; | ||
readonly children?: this[]; | ||
} | ||
export type UseTreeViewOptions<T> = (Omit<TreeViewOptions<T>, 'treeDataProvider'> & Pick<TreeDataProvider<T>, 'getTreeItem' | 'resolveTreeItem'>) | TreeDataProvider<T>['getTreeItem']; | ||
export type TreeViewWithoutParent<T> = Omit<TreeView<T>, 'reveal'>; | ||
/** | ||
@@ -13,2 +12,2 @@ * Register a tree view. See `vscode::window.createTreeView`. | ||
*/ | ||
export declare const useTreeView: <T extends TreeViewNode>(viewId: string, treeData: MaybeRefOrGetter<T[]>, options: UseTreeViewOptions<T>) => TreeViewWithoutParent<T>; | ||
export declare const useTreeView: <T extends TreeViewNode>(viewId: string, treeData: MaybeRefOrGetter<T[]>, options: UseTreeViewOptions<T>) => TreeView<T>; |
{ | ||
"name": "reactive-vscode", | ||
"type": "module", | ||
"version": "0.0.0", | ||
"version": "0.0.1-beta.1", | ||
"description": "Develop VSCode extension with Vue 3 Composition API", | ||
@@ -26,8 +26,8 @@ "author": "_Kerman <kermanx@qq.com>", | ||
".": { | ||
"types": "./src/index.ts", | ||
"import": "./src/index.ts" | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.mjs" | ||
} | ||
}, | ||
"main": "./src/index.ts", | ||
"types": "./src/index.ts", | ||
"main": "./dist/index.mjs", | ||
"types": "./dist/index.d.ts", | ||
"files": [ | ||
@@ -34,0 +34,0 @@ "README.md", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
57065
1
36
124
1410