Update Timeline.d.ts

pull/4148/head
Tuğçe Küçükoğlu 2023-07-13 10:52:17 +03:00
parent 7cd5379af7
commit fd632dad19
1 changed files with 20 additions and 1 deletions

View File

@ -10,7 +10,16 @@ import { VNode } from 'vue';
import { ComponentHooks } from '../basecomponent'; import { ComponentHooks } from '../basecomponent';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
export declare type TimelinePassThroughOptionType = TimelinePassThroughAttributes | null | undefined; export declare type TimelinePassThroughOptionType = TimelinePassThroughAttributes | ((options: TimelinePassThroughMethodOptions) => TimelinePassThroughAttributes | string) | string | null | undefined;
/**
* Custom passthrough(pt) option method.
*/
export interface TimelinePassThroughMethodOptions {
instance: any;
props: TimelineProps;
context: TimelineContext;
}
/** /**
* Custom passthrough(pt) options. * Custom passthrough(pt) options.
@ -59,6 +68,16 @@ export interface TimelinePassThroughAttributes {
[key: string]: any; [key: string]: any;
} }
/**
* Defines current options in Timeline component.
*/
export interface TimelineContext {
/**
* Current index of the item as a number.
*/
index: number;
}
/** /**
* Defines valid properties in Timeline component. * Defines valid properties in Timeline component.
*/ */