Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add currency to StripesType #53

Merged
merged 2 commits into from
Feb 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions core/src/Stripes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

/** Type of the `stripes` object */
export interface StripesType {
/** The current session's currency */
currency: string;

/**
* Check if the current user has a given permission
*
Expand Down Expand Up @@ -32,7 +35,7 @@
// for use in prop-types
export const stripesShape: Requireable<StripesType>;

export class Stripes implements StripesType {

Check failure on line 38 in core/src/Stripes.d.ts

View workflow job for this annotation

GitHub Actions / build-npm

Class 'Stripes' incorrectly implements interface 'StripesType'.

Check failure on line 38 in core/src/Stripes.d.ts

View workflow job for this annotation

GitHub Actions / build-npm

Class 'Stripes' incorrectly implements interface 'StripesType'.
hasPerm(perm: string): boolean | undefined;
hasInterface(interface: string, version?: string): boolean | string | 0 | undefined;

Expand Down
Loading