fansunited-sdk-esm 1.53.0 → 1.53.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,12 +8,14 @@ import IdMappingModel from "../IdMapping/Models/IdMappingModel";
8
8
  import { LocalCacheInterface } from "./Interfaces/GlobalInterfaces";
9
9
  export type ExpirationType = "profile" | "statistics" | "badges" | "features" | "ids";
10
10
  export default class LocalStorage implements LocalCacheInterface {
11
+ private static instance;
11
12
  private idSchema;
12
13
  readonly expirationProfileTimeout: number;
13
14
  readonly expirationBadgesTimeout: number;
14
15
  readonly expirationClientFeaturesTimeout: number;
15
16
  readonly expirationFootballIdsTimeout: number;
16
- constructor(idSchema: string);
17
+ private constructor();
18
+ static getInstance(idSchema: string): LocalStorage;
17
19
  clearData: () => void;
18
20
  getEntityById: (type?: string, id?: string) => any;
19
21
  getEntity: (ids: string | string[], type: string, schema: string) => any;