Skip to content

Commit

Permalink
add missing types for extensions (#12952)
Browse files Browse the repository at this point in the history
* add mising types for extensions

* add missing type
  • Loading branch information
aalves08 authored Jan 6, 2025
1 parent cfd0088 commit e6bb53e
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion shell/core/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,16 @@ export interface ProductOptions {
*/
to?: PluginRouteRecordRaw;

/**
* Alternative to the icon property. Uses require
*/
svg?: Function;

/**
* Product name
*/
name?: string;

/**
* Leaving these here for completeness but I don't think these should be advertised as useable to plugin creators.
*/
Expand Down Expand Up @@ -383,10 +393,15 @@ export interface ConfigureVirtualTypeOptions extends ConfigureTypeOptions {
*/
ifHaveType?: string | RegExp | Object;

/**
* The label that this type should display
*/
label?: string;

/**
* The translation key displayed anywhere this type is referenced
*/
labelKey: string;
labelKey?: string;

/**
* An identifier that should be unique across all types
Expand Down

0 comments on commit e6bb53e

Please sign in to comment.