Skip to content

Commit

Permalink
Moved Extras definition to a separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
mjasikowski committed Sep 26, 2024
1 parent 110a432 commit a7c7cd8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
7 changes: 1 addition & 6 deletions lib/ExpensiMark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string>;
accountIDToName?: Record<string, string>;
mediaAttributeCachingFn?: (mediaSource: string, attrs: string) => void;
mediaAttributeCache?: Record<string, string>;
};
const EXTRAS_DEFAULT = {};

type ReplacementFn = (extras: Extras, ...matches: string[]) => string;
Expand Down
8 changes: 8 additions & 0 deletions lib/Extras.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
type Extras = {
reportIDToName?: Record<string, string>;
accountIDToName?: Record<string, string>;
mediaAttributeCachingFn?: (mediaSource: string, attrs: string) => void;
mediaAttributeCache?: Record<string, string>;
};

export default Extras;

0 comments on commit a7c7cd8

Please sign in to comment.