@jay-js/system
Version:
A powerful and flexible TypeScript library for UI, state management, lazy loading, routing and managing draggable elements in modern web applications.
19 lines (18 loc) • 485 B
TypeScript
export type ConfigChangeCallback = (options: TLazyOptions) => void;
export type TImportedModule = {
module: any;
lastUsed: number;
collect: boolean;
};
export type TLazyModule = {
module?: string;
import: () => Promise<any>;
params?: Record<string, any>;
collect?: boolean;
loader?: HTMLElement | DocumentFragment;
};
export type TLazyOptions = {
gcThreshold?: number;
gcInterval?: number;
defaultLoader?: HTMLElement | DocumentFragment;
};