From a7c7cd87a4fa2be35cadb38a3172c29ad6ba0567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Jasikowski?= Date: Thu, 26 Sep 2024 10:12:32 +0200 Subject: [PATCH] Moved Extras definition to a separate file --- lib/ExpensiMark.ts | 7 +------ lib/Extras.ts | 8 ++++++++ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/ExpensiMark.ts b/lib/ExpensiMark.ts index c9f5cc60..1d702678 100644 --- a/lib/ExpensiMark.ts +++ b/lib/ExpensiMark.ts @@ -5,13 +5,8 @@ import * as Constants from './CONST'; import * as UrlPatterns from './Url'; import Logger from './Logger'; import * as Utils from './utils'; +import type Extras from './Extras'; -export type Extras = { - reportIDToName?: Record; - accountIDToName?: Record; - mediaAttributeCachingFn?: (mediaSource: string, attrs: string) => void; - mediaAttributeCache?: Record; -}; const EXTRAS_DEFAULT = {}; type ReplacementFn = (extras: Extras, ...matches: string[]) => string; diff --git a/lib/Extras.ts b/lib/Extras.ts index e69de29b..0f1075da 100644 --- a/lib/Extras.ts +++ b/lib/Extras.ts @@ -0,0 +1,8 @@ +type Extras = { + reportIDToName?: Record; + accountIDToName?: Record; + mediaAttributeCachingFn?: (mediaSource: string, attrs: string) => void; + mediaAttributeCache?: Record; +}; + +export default Extras;