Initial commit
This commit is contained in:
40
node_modules/embla-carousel/cjs/components/Options.d.ts
generated
vendored
Normal file
40
node_modules/embla-carousel/cjs/components/Options.d.ts
generated
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
import { AlignmentOptionType } from './Alignment';
|
||||
import { AxisDirectionOptionType, AxisOptionType } from './Axis';
|
||||
import { SlidesToScrollOptionType } from './SlidesToScroll';
|
||||
import { ScrollContainOptionType } from './ScrollContain';
|
||||
import { DragHandlerOptionType } from './DragHandler';
|
||||
import { ResizeHandlerOptionType } from './ResizeHandler';
|
||||
import { SlidesHandlerOptionType } from './SlidesHandler';
|
||||
import { SlidesInViewOptionsType } from './SlidesInView';
|
||||
import { FocusHandlerOptionType } from './SlideFocus';
|
||||
export type LooseOptionsType = {
|
||||
[key: string]: unknown;
|
||||
};
|
||||
export type CreateOptionsType<Type extends LooseOptionsType> = Type & {
|
||||
active: boolean;
|
||||
breakpoints: {
|
||||
[key: string]: Omit<Partial<CreateOptionsType<Type>>, 'breakpoints'>;
|
||||
};
|
||||
};
|
||||
export type OptionsType = CreateOptionsType<{
|
||||
align: AlignmentOptionType;
|
||||
axis: AxisOptionType;
|
||||
container: string | HTMLElement | null;
|
||||
slides: string | HTMLElement[] | NodeListOf<HTMLElement> | null;
|
||||
containScroll: ScrollContainOptionType;
|
||||
direction: AxisDirectionOptionType;
|
||||
slidesToScroll: SlidesToScrollOptionType;
|
||||
dragFree: boolean;
|
||||
dragThreshold: number;
|
||||
inViewThreshold: SlidesInViewOptionsType;
|
||||
loop: boolean;
|
||||
skipSnaps: boolean;
|
||||
duration: number;
|
||||
startIndex: number;
|
||||
watchDrag: DragHandlerOptionType;
|
||||
watchResize: ResizeHandlerOptionType;
|
||||
watchSlides: SlidesHandlerOptionType;
|
||||
watchFocus: FocusHandlerOptionType;
|
||||
}>;
|
||||
export declare const defaultOptions: OptionsType;
|
||||
export type EmblaOptionsType = Partial<OptionsType>;
|
||||
Reference in New Issue
Block a user