Profectus / features/clickables/upgrade / createUpgrade
Function: createUpgrade() ​
createUpgrade<
T
>(optionsFunc
):object
&Omit
<Omit
<T
,"display"
|"onHold"
|"requirements"
>,"canClick"
|"display"
|"onClick"
|"onHold"
|"visibility"
|"classes"
|"style"
| typeofVueFeature
|"id"
|"components"
|"wrappers"
|"requirements"
|"onPurchase"
> &object
Lazily creates an upgrade with the given options.
Type Parameters ​
• T extends UpgradeOptions
Parameters ​
optionsFunc ​
() => T
Upgrade options.
Returns ​
object
& Omit
<Omit
<T
, "display"
| "onHold"
| "requirements"
>, "canClick"
| "display"
| "onClick"
| "onHold"
| "visibility"
| "classes"
| "style"
| typeof VueFeature
| "id"
| "components"
| "wrappers"
| "requirements"
| "onPurchase"
> & object