2
0
mirror of https://github.com/iconify/iconify.git synced 2025-01-09 08:19:50 +00:00
iconify/packages/core/src/modules.ts
2020-04-28 12:47:35 +03:00

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 = {};