From ae88831c10215d9e3d0cdd44f8725822dfe9eb0f Mon Sep 17 00:00:00 2001 From: Vjacheslav Trushkin Date: Thu, 23 Jun 2022 09:30:28 +0300 Subject: [PATCH] Add lastModified to IconifyJSON to break outdated icons cache --- packages/types/types.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/types/types.d.ts b/packages/types/types.d.ts index 451c65a..2ccb096 100644 --- a/packages/types/types.d.ts +++ b/packages/types/types.d.ts @@ -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[]; }