Skip to content

Commit

Permalink
add mising types for extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
aalves08 committed Dec 26, 2024
1 parent a018eb6 commit e685003
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions shell/core/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,11 @@ export interface ProductOptions {
*/
to?: Location;

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

/**
* Leaving these here for completeness but I don't think these should be advertised as useable to plugin creators.
*/
Expand Down Expand Up @@ -376,17 +381,22 @@ export interface ConfigureVirtualTypeOptions extends ConfigureTypeOptions {
/**
* Only load the product if the type is present
*/
ifHave?: string;
ifHave?: string;

/**
* Only load the product if the type is present
*/
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 e685003

Please sign in to comment.