index.d.ts 834 B

123456789101112131415161718
  1. import * as _$vue from "vue";
  2. import { ComponentInternalInstance, VNode } from "vue";
  3. //#region ../../packages/hooks/use-ordered-children/index.d.ts
  4. type ChildEssential = {
  5. uid: number;
  6. getVnode: () => VNode;
  7. };
  8. declare const useOrderedChildren: <T extends ChildEssential>(vm: ComponentInternalInstance, childComponentName: string) => {
  9. children: _$vue.ShallowRef<T[], T[]>;
  10. addChild: (child: T) => void;
  11. removeChild: (child: T) => void;
  12. ChildrenSorter: _$vue.DefineComponent<{}, () => VNode<_$vue.RendererNode, _$vue.RendererElement, {
  13. [key: string]: any;
  14. }> | null, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
  15. };
  16. //#endregion
  17. export { useOrderedChildren };