From 8a1987cb026b11089fa2a9cd0b608d49addec8ee Mon Sep 17 00:00:00 2001 From: mertsincan Date: Thu, 2 Dec 2021 00:12:13 +0300 Subject: [PATCH] Fixed #1836 - For TriStateCheckbox --- .../tristatecheckbox/TriStateCheckbox.d.ts | 44 ++++++++++++++++--- 1 file changed, 39 insertions(+), 5 deletions(-) diff --git a/src/components/tristatecheckbox/TriStateCheckbox.d.ts b/src/components/tristatecheckbox/TriStateCheckbox.d.ts index 6e9c59e39..5e434cea0 100755 --- a/src/components/tristatecheckbox/TriStateCheckbox.d.ts +++ b/src/components/tristatecheckbox/TriStateCheckbox.d.ts @@ -1,12 +1,46 @@ -interface TriStateCheckboxProps { - modelValue?: any; +import { ClassComponent, GlobalComponentConstructor, Nullable } from '../ts-helpers'; + +export interface TriStateCheckboxProps { + /** + * Value of the component. + */ + modelValue?: Nullable; + /** + * Inline style of the component. + */ style?: any; + /** + * Style class of the component. + */ class?: string; } -declare class TriStateCheckbox { - $props: TriStateCheckboxProps; - $emit(eventName: 'update:modelValue', value: any): this; +export interface TriStateCheckboxSlots { } +export declare type TriStateCheckboxEmits = { + /** + * Emitted when the value changes. + * @param {boolean|null|undefined} value - New value. + */ + 'update:modelValue': (value: Nullable) => void; +} + +declare class TriStateCheckbox extends ClassComponent { } + +declare module '@vue/runtime-core' { + interface GlobalComponents { + TriStateCheckbox: GlobalComponentConstructor + } +} + +/** + * + * TriStateCheckbox is used to select either "true", "false" or "null" as the value. + * + * Demos: + * + * - [TriStateCheckbox](https://www.primefaces.org/primevue/showcase/#/tristatecheckbox) + * + */ export default TriStateCheckbox;