mirror of
https://github.com/iconify/iconify.git
synced 2024-12-13 22:18:24 +00:00
22 lines
386 B
TypeScript
22 lines
386 B
TypeScript
import type { IconifyJSON } from '@iconify/types';
|
|
|
|
/**
|
|
* Function to cache loaded icons set
|
|
*/
|
|
export type CacheIcons = (provider: string, data: IconifyJSON) => void;
|
|
|
|
/**
|
|
* Function to load icons from cache
|
|
*/
|
|
export type LoadIconsCache = () => void;
|
|
|
|
/**
|
|
* Module
|
|
*/
|
|
interface CacheModule {
|
|
store?: CacheIcons;
|
|
load?: LoadIconsCache;
|
|
}
|
|
|
|
export const cache: CacheModule = {};
|