- Added Custom Exams tab showing all exams from Generation page - Displays title, module badges, duration, and status - Added Create Exam button - Kept Exam Sessions tab for institutional sessions - Search filters across exams Made-with: Cursor
17 lines
684 B
TypeScript
17 lines
684 B
TypeScript
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];
|