mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 17:32:36 +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
components/lib/inputswitch/InputSwitch.d.ts
vendored
10
components/lib/inputswitch/InputSwitch.d.ts
vendored
|
@ -8,7 +8,7 @@
|
|||
*
|
||||
*/
|
||||
import * as ToggleSwitch from '../toggleswitch';
|
||||
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
|
||||
import { DefineComponent, EmitFn, GlobalComponentConstructor } from '../ts-helpers';
|
||||
/**
|
||||
* Custom passthrough(pt) option method.
|
||||
*/
|
||||
|
@ -40,7 +40,9 @@ export interface InputSwitchSlots extends ToggleSwitch.ToggleSwitchSlots {}
|
|||
/**
|
||||
* Defines valid emits in InputSwitch component.
|
||||
*/
|
||||
export interface InputSwitchEmits extends ToggleSwitch.ToggleSwitchEmits {}
|
||||
interface InputSwitchEmitsOptions {}
|
||||
|
||||
export declare type InputSwitchEmits = EmitFn<InputSwitchEmitsOptions> & ToggleSwitch.ToggleSwitchEmits;
|
||||
|
||||
/**
|
||||
* @deprecated Deprecated since v4. Use ToggleSwitch component instead.
|
||||
|
@ -56,11 +58,11 @@ export interface InputSwitchEmits extends ToggleSwitch.ToggleSwitchEmits {}
|
|||
* @group Component
|
||||
*
|
||||
*/
|
||||
declare class InputSwitch extends ClassComponent<InputSwitchProps, InputSwitchSlots, InputSwitchEmits> {}
|
||||
declare const InputSwitch: DefineComponent<InputSwitchProps, InputSwitchSlots, InputSwitchEmits>;
|
||||
|
||||
declare module 'vue' {
|
||||
export interface GlobalComponents {
|
||||
InputSwitch: GlobalComponentConstructor<InputSwitch>;
|
||||
InputSwitch: GlobalComponentConstructor<InputSwitchProps, InputSwitchSlots, InputSwitchEmits>;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue