From ee4d4def5d3ed11004727dadc980a7a73d0d94a9 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Mon, 12 Feb 2024 16:11:50 +0300 Subject: [PATCH] Update TabView.d.ts --- components/lib/tabview/TabView.d.ts | 32 ++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/components/lib/tabview/TabView.d.ts b/components/lib/tabview/TabView.d.ts index da23de144..51883f1dd 100755 --- a/components/lib/tabview/TabView.d.ts +++ b/components/lib/tabview/TabView.d.ts @@ -13,7 +13,37 @@ import { PassThroughOptions } from '../passthrough'; import { TabPanelPassThroughOptionType } from '../tabpanel'; import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers'; -export declare type TabViewPassThroughOptionType = TabViewPassThroughAttributes | ((options: { props: TabViewProps; state: TabViewState }) => TabViewPassThroughAttributes | string) | string | null | undefined; +export declare type TabViewPassThroughOptionType = TabViewPassThroughAttributes | ((options: TabViewPassThroughMethodOptions) => TabViewPassThroughAttributes | string) | string | null | undefined; + +/** + * Custom passthrough(pt) option method. + */ +export interface TabViewPassThroughMethodOptions { + /** + * Defines instance. + */ + instance: any; + /** + * Defines valid properties. + */ + props: TabViewProps; + /** + * Defines current inline state. + */ + state: TabViewState; + /** + * Defines valid attributes. + */ + attrs: any; + /** + * Defines parent options. + */ + parent: any; + /** + * Defines passthrough(pt) options in global config. + */ + global: object | undefined; +} /** * Custom tab change event.