mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Fixed #5405 - TypeScript emits are in an incompatible format with defineEmits
This commit is contained in:
parent
c3669ad03a
commit
98302e417e
114 changed files with 948 additions and 637 deletions
|
@ -10,7 +10,7 @@
|
|||
import { VNode } from 'vue';
|
||||
import { ComponentHooks } from '../basecomponent';
|
||||
import { PassThroughOptions } from '../passthrough';
|
||||
import { ClassComponent, DesignToken, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
|
||||
import { DefineComponent, DesignToken, EmitFn, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
|
||||
|
||||
export declare type OrganizationChartPassThroughOptionType = OrganizationChartPassThroughAttributes | ((options: OrganizationChartPassThroughMethodOptions) => OrganizationChartPassThroughAttributes | string) | string | null | undefined;
|
||||
|
||||
|
@ -307,7 +307,7 @@ export interface OrganizationChartSlots {
|
|||
/**
|
||||
* Defines valid emits in OrganizationChart component.
|
||||
*/
|
||||
export interface OrganizationChartEmits {
|
||||
interface OrganizationChartEmitsOptions {
|
||||
/**
|
||||
* Emitted when the value changes.
|
||||
* @param {*} value - New value.
|
||||
|
@ -340,6 +340,8 @@ export interface OrganizationChartEmits {
|
|||
'node-collapsed'(node: OrganizationChartNode): void;
|
||||
}
|
||||
|
||||
export declare type OrganizationChartEmits = EmitFn<OrganizationChartEmitsOptions>;
|
||||
|
||||
/**
|
||||
* **PrimeVue - OrganizationChart**
|
||||
*
|
||||
|
@ -350,12 +352,13 @@ export interface OrganizationChartEmits {
|
|||
* 
|
||||
*
|
||||
* @group Component
|
||||
*
|
||||
*/
|
||||
declare class OrganizationChart extends ClassComponent<OrganizationChartProps, OrganizationChartSlots, OrganizationChartEmits> {}
|
||||
declare const OrganizationChart: DefineComponent<OrganizationChartProps, OrganizationChartSlots, OrganizationChartEmits>;
|
||||
|
||||
declare module 'vue' {
|
||||
export interface GlobalComponents {
|
||||
OrganizationChart: GlobalComponentConstructor<OrganizationChart>;
|
||||
OrganizationChart: GlobalComponentConstructor<OrganizationChartProps, OrganizationChartSlots, OrganizationChartEmits>;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue