mirror of
https://github.com/iconify/iconify.git
synced 2025-01-09 08:19:50 +00:00
19 lines
516 B
TypeScript
19 lines
516 B
TypeScript
import { CacheIcons } from './interfaces/cache';
|
|
import { IconifyAPI } from './interfaces/api';
|
|
|
|
/**
|
|
* Dynamic modules.
|
|
*
|
|
* Used as storage for optional functions that may or may not exist.
|
|
* Each module must be set after including correct function for it, see build files as examples.
|
|
*/
|
|
interface Modules {
|
|
// API module
|
|
api?: IconifyAPI;
|
|
|
|
// Cache module (only function that stores cache. loading cache should be done when assigning module)
|
|
cache?: CacheIcons;
|
|
}
|
|
|
|
export const coreModules: Modules = {};
|