intro.js
Version:
User Onboarding and Product Walkthrough Library
11 lines (10 loc) • 319 B
TypeScript
/**
* Generic package interface.
*/
export interface Package<TOption> {
getOption<K extends keyof TOption>(key: K): TOption[K];
setOptions(partialOptions: Partial<TOption>): this;
setOption<K extends keyof TOption>(key: K, value: TOption[K]): this;
clone(): ThisType<this>;
isActive(): boolean;
}