Module: features/buyable
Interfaces
Type aliases
Buyable
Ƭ Buyable<T
>: Replace
<T
& BaseBuyable
, { canPurchase
: GetComputableTypeWithDefault
<T
["canPurchase"
], Ref
<boolean
>> ; classes
: GetComputableType
<T
["classes"
]> ; cost
: GetComputableType
<T
["cost"
]> ; display
: Ref
<CoercableComponent
> ; mark
: GetComputableType
<T
["mark"
]> ; purchaseLimit
: GetComputableTypeWithDefault
<T
["purchaseLimit"
], Decimal
> ; resource
: GetComputableType
<T
["resource"
]> ; small
: GetComputableType
<T
["small"
]> ; style
: GetComputableType
<T
["style"
]> ; visibility
: GetComputableTypeWithDefault
<T
["visibility"
], Visible
> }>
Type parameters
Name | Type |
---|---|
T | extends BuyableOptions |
Defined in
profectus/src/features/buyable.tsx:64
BuyableDisplay
Ƭ BuyableDisplay: CoercableComponent
| { description
: CoercableComponent
; effectDisplay?
: CoercableComponent
; title?
: CoercableComponent
}
Defined in
profectus/src/features/buyable.tsx:29
GenericBuyable
Ƭ GenericBuyable: Replace
<Buyable
<BuyableOptions
>, { canPurchase
: ProcessedComputable
<boolean
> ; purchaseLimit
: ProcessedComputable
<DecimalSource
> ; visibility
: ProcessedComputable
<Visibility
> }>
Defined in
profectus/src/features/buyable.tsx:80
Variables
BuyableType
• Const
BuyableType: typeof BuyableType
Defined in
profectus/src/features/buyable.tsx:27
Functions
createBuyable
▸ createBuyable<T
>(optionsFunc
): Buyable
<T
>
Type parameters
Name | Type |
---|---|
T | extends BuyableOptions |
Parameters
Name | Type |
---|---|
optionsFunc | () => T & ThisType <Buyable <T >> |
Returns
Buyable
<T
>