@varlet/use 2.9.0-alpha.1678417783003 → 2.9.0-alpha.1678431541952

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.
@@ -4,7 +4,7 @@ export interface UseChildrenBaseProvider<C> {
4
4
  collect(instance: ComponentInternalInstance, childProvider: C): void;
5
5
  clear(instance: ComponentInternalInstance, childProvider: C): void;
6
6
  }
7
- export declare function useChildren<P, C>(key: symbol): {
7
+ export declare function useChildren<P, C>(key: symbol | string): {
8
8
  length: ComputedRef<number>;
9
9
  childProviders: C[];
10
10
  bindChildren: (parentProvider: P) => void;
@@ -1,7 +1,7 @@
1
1
  import { type ComputedRef } from 'vue';
2
2
  import { type UseChildrenBaseProvider } from './useChildren.js';
3
- export declare function keyInProvides(key: symbol): boolean;
4
- export declare function useParent<P, C>(key: symbol): {
3
+ export declare function keyInProvides(key: symbol | string): boolean;
4
+ export declare function useParent<P, C>(key: symbol | string): {
5
5
  index: null;
6
6
  parentProvider: null;
7
7
  bindParent: null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/use",
3
- "version": "2.9.0-alpha.1678417783003",
3
+ "version": "2.9.0-alpha.1678431541952",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.js",
@@ -24,7 +24,7 @@
24
24
  "url": "https://github.com/varletjs/varlet/issues"
25
25
  },
26
26
  "dependencies": {
27
- "@varlet/shared": "2.9.0-alpha.1678417783003"
27
+ "@varlet/shared": "2.9.0-alpha.1678431541952"
28
28
  },
29
29
  "devDependencies": {
30
30
  "typescript": "^4.4.4",