mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-07 19:12:28 +03:00
31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
import type {
|
|
InitializationTargetElement,
|
|
StaticInitializationElement,
|
|
DynamicInitializationElement,
|
|
} from 'initialization';
|
|
|
|
export type StructureStaticInitializationElement = StaticInitializationElement<
|
|
[target: InitializationTargetElement]
|
|
>;
|
|
|
|
export type StructureDynamicInitializationElement = DynamicInitializationElement<
|
|
[target: InitializationTargetElement]
|
|
>;
|
|
|
|
/**
|
|
* Object for special initialization.
|
|
*
|
|
* Target is always required, if element is not provided or undefined it will be generated.
|
|
*
|
|
* If element is provided, the provided element takes all its responsibilities.
|
|
* DOM hierarchy isn't checked in this case, its assumed that hieararchy is correct in such a case.
|
|
*
|
|
* undefined means that the default initialization strategy is used.
|
|
*/
|
|
export interface StructureInitialization {
|
|
host: StructureStaticInitializationElement; // only relevant for textarea
|
|
viewport: StructureStaticInitializationElement;
|
|
padding: StructureDynamicInitializationElement;
|
|
content: StructureDynamicInitializationElement;
|
|
}
|