2
0
mirror of https://github.com/iconify/iconify.git synced 2025-01-10 08:34:04 +00:00
iconify/packages/core/src/modules.ts

19 lines
516 B
TypeScript
Raw Normal View History

2020-04-28 09:47:35 +00:00
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 = {};