diff --git a/src/core/API/contextListings/types/extendButton.ts b/src/core/API/contextListings/types/extendButton.ts index 117ce8118..0956df62e 100644 --- a/src/core/API/contextListings/types/extendButton.ts +++ b/src/core/API/contextListings/types/extendButton.ts @@ -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; -} +}; diff --git a/src/core/API/contextListings/types/root.ts b/src/core/API/contextListings/types/root.ts index b83b6ca77..c9de38af7 100644 --- a/src/core/API/contextListings/types/root.ts +++ b/src/core/API/contextListings/types/root.ts @@ -10,10 +10,10 @@ export interface contextMenuListing { listing: anyContextListingType[]; } -export type type { +export type type = { type: string; icon?: FC; -} +}; export type anyContextListingType = | ExtendContextListing.type diff --git a/src/core/API/contextListings/types/separator.ts b/src/core/API/contextListings/types/separator.ts index 661e0b613..42fc63d9e 100644 --- a/src/core/API/contextListings/types/separator.ts +++ b/src/core/API/contextListings/types/separator.ts @@ -1,3 +1,3 @@ -export type type { +export type type = { type: 'separator'; -} +}; diff --git a/src/core/API/contextListings/types/textButton.ts b/src/core/API/contextListings/types/textButton.ts index 199af19eb..c184c903d 100644 --- a/src/core/API/contextListings/types/textButton.ts +++ b/src/core/API/contextListings/types/textButton.ts @@ -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; -} +}; diff --git a/src/core/API/contextListings/types/toggle.ts b/src/core/API/contextListings/types/toggle.ts index 75e51a893..9a6a86a5a 100644 --- a/src/core/API/contextListings/types/toggle.ts +++ b/src/core/API/contextListings/types/toggle.ts @@ -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; -} +};