Blame view

天文台pc/tianwentai-ui/node_modules/embla-carousel/cjs/components/Plugins.d.ts 684 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  import { CreateOptionsType, LooseOptionsType } from './Options';
  import { EmblaCarouselType } from './EmblaCarousel';
  import { OptionsHandlerType } from './OptionsHandler';
  export type LoosePluginType = {
      [key: string]: unknown;
  };
  export type CreatePluginType<TypeA extends LoosePluginType, TypeB extends LooseOptionsType> = TypeA & {
      name: string;
      options: Partial<CreateOptionsType<TypeB>>;
      init: (embla: EmblaCarouselType, OptionsHandler: OptionsHandlerType) => void;
      destroy: () => void;
  };
  export interface EmblaPluginsType {
      [key: string]: CreatePluginType<LoosePluginType, {}>;
  }
  export type EmblaPluginType = EmblaPluginsType[keyof EmblaPluginsType];