2
0
mirror of https://github.com/iconify/iconify.git synced 2025-01-06 07:20:40 +00:00

Add lastModified to IconifyJSON to break outdated icons cache

This commit is contained in:
Vjacheslav Trushkin 2022-06-23 09:30:28 +03:00
parent b2d3accf81
commit ae88831c10

View File

@ -246,6 +246,11 @@ export interface IconifyJSONIconsData extends IconifyDimenisons {
* All optional values can exist in root of JSON file, used as defaults.
*/
export interface IconifyJSON extends IconifyJSONIconsData, IconifyMetaData {
// Last modification time of icons. Unix time stamp in seconds.
// Time is calculated only for icon data, ignoring metadata.
// Used to invalidate icons cache in components.
lastModified?: number;
// Optional list of missing icons. Returned by Iconify API when querying for icons that do not exist.
not_found?: string[];
}