Update dynamic slot typing

pull/3711/head
Tuğçe Küçükoğlu 2023-03-07 16:40:44 +03:00
parent e2747c5ae8
commit 98f0eb4a7f
2 changed files with 8 additions and 7 deletions

View File

@ -102,7 +102,7 @@ export interface OrganizationChartSlots {
* Dynamic content template. * Dynamic content template.
* @todo * @todo
*/ */
// [key: string](node: any): VNode[]; [key: string]: (node: any) => VNode[];
} }
/** /**

View File

@ -7,6 +7,7 @@
* @module tree * @module tree
* *
*/ */
import { VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
/** /**
@ -167,12 +168,12 @@ export interface TreeSlots {
* Optional slots. * Optional slots.
* @todo * @todo
*/ */
// [key: string](scope: { [key: string]: (scope: {
/** /**
* Tree node instance * Tree node instance
*/ */
// node: TreeNode; node: TreeNode;
// }):VNode[]; }) => VNode[];
} }
/** /**