Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tresabhi committed Dec 22, 2021
2 parents 5510483 + 54e37d5 commit 5e22e38
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/core/API/contextListings/types/extendButton.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as RootContextListing from './root';

export type type extends RootContextListing.type {
export type type = RootContextListing.type & {
type: 'extend_button';
text: string;
extend: RootContextListing.contextMenuListing;
}
};
4 changes: 2 additions & 2 deletions src/core/API/contextListings/types/root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ export interface contextMenuListing {
listing: anyContextListingType[];
}

export type type {
export type type = {
type: string;
icon?: FC;
}
};

export type anyContextListingType =
| ExtendContextListing.type
Expand Down
4 changes: 2 additions & 2 deletions src/core/API/contextListings/types/separator.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export type type {
export type type = {
type: 'separator';
}
};
4 changes: 2 additions & 2 deletions src/core/API/contextListings/types/textButton.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as RootContextListing from './root';

export type type extends RootContextListing.type {
export type type = RootContextListing.type & {
type: 'text_button';
text: string;
onClick: () => void;
}
};
4 changes: 2 additions & 2 deletions src/core/API/contextListings/types/toggle.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as RootContextListing from './root';

export type type extends RootContextListing.type {
export type type = RootContextListing.type & {
type: 'toggle';
text: string;
onClick: () => void;
default?: boolean;
}
};

0 comments on commit 5e22e38

Please sign in to comment.