mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-11 01:42: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 InputGroupAddonPassThroughOptionType = InputGroupAddonPassThroughAttributes | ((options: InputGroupAddonPassThroughMethodOptions) => InputGroupAddonPassThroughAttributes | string) | string | null | undefined;
|
||||
|
||||
|
@ -102,7 +102,9 @@ export interface InputGroupAddonSlots {
|
|||
/**
|
||||
* Defines valid emits in InputGroupAddon component.
|
||||
*/
|
||||
export interface InputGroupAddonEmits {}
|
||||
interface InputGroupAddonEmitsOptions {}
|
||||
|
||||
export declare type InputGroupAddonEmits = EmitFn<InputGroupAddonEmitsOptions>;
|
||||
|
||||
/**
|
||||
* **PrimeVue - InputGroupAddon**
|
||||
|
@ -114,12 +116,13 @@ export interface InputGroupAddonEmits {}
|
|||
* 
|
||||
*
|
||||
* @group Component
|
||||
*
|
||||
*/
|
||||
declare class InputGroupAddon extends ClassComponent<InputGroupAddonProps, InputGroupAddonSlots, InputGroupAddonEmits> {}
|
||||
declare const InputGroupAddon: DefineComponent<InputGroupAddonProps, InputGroupAddonSlots, InputGroupAddonEmits>;
|
||||
|
||||
declare module 'vue' {
|
||||
export interface GlobalComponents {
|
||||
InputGroupAddon: GlobalComponentConstructor<InputGroupAddon>;
|
||||
InputGroupAddon: GlobalComponentConstructor<InputGroupAddonProps, InputGroupAddonSlots, InputGroupAddonEmits>;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue