From 6142704d974c73d4cf9be045dd8c602a99a2a66c Mon Sep 17 00:00:00 2001 From: Noah Overcash Date: Tue, 13 Feb 2024 15:47:45 -0500 Subject: [PATCH 1/2] Add currency to StripesType --- core/src/Stripes.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/Stripes.d.ts b/core/src/Stripes.d.ts index d2f1883..7f6a0d7 100644 --- a/core/src/Stripes.d.ts +++ b/core/src/Stripes.d.ts @@ -2,6 +2,9 @@ import { Requireable } from 'react'; /** Type of the `stripes` object */ export interface StripesType { + /** The current session's currency */ + currency: string; + /** * Check if the current user has a given permission * From 2dbd8d30905cf5592954234e2a8496694b99f950 Mon Sep 17 00:00:00 2001 From: Noah Overcash Date: Tue, 13 Feb 2024 16:23:16 -0500 Subject: [PATCH 2/2] Update Stripes.d.ts --- core/src/Stripes.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/Stripes.d.ts b/core/src/Stripes.d.ts index 7f6a0d7..4156b87 100644 --- a/core/src/Stripes.d.ts +++ b/core/src/Stripes.d.ts @@ -36,6 +36,8 @@ export interface StripesType { export const stripesShape: Requireable; export class Stripes implements StripesType { + currency: string; + hasPerm(perm: string): boolean | undefined; hasInterface(interface: string, version?: string): boolean | string | 0 | undefined;