Skip to content

Commit

Permalink
Merge pull request #64 from spring-media/PA-3592
Browse files Browse the repository at this point in the history
feat PA-3608: Add getRosettaEnvByKey to UtilsV1 interface
  • Loading branch information
eschmittel authored Nov 23, 2023
2 parents ec440bc + 6057fcb commit d9b791f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ps-web-apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export type FetchOptions = RequestInit & { timeout?: number };
* Custom fetch interface which includes the possibility to customize timeouts for fetch requests
*/
export type Fetch = (input: RequestInfo, init?: FetchOptions) => Promise<Response>;

export type GetRosettaEnvByKey = (key: string) => string | undefined;
export interface WhoamiV1 {
/**
* will assert valid not outdated session before fetch will be done. backend credentials will be added automatically
Expand Down Expand Up @@ -127,6 +127,7 @@ export interface WhoamiV1 {

export interface UtilsV1 {
fetchWithTimeout: Fetch;
getRosettaEnvByKey: GetRosettaEnvByKey;
}
export type ILayer = "privacy" | "reject";
export type IApp = "offerpage" | "checkout" | "cancellation";
Expand Down

0 comments on commit d9b791f

Please sign in to comment.