Module: features/challenges/challenge
Interfaces
Type aliases
Challenge
Ƭ Challenge<T
>: Replace
<T
& BaseChallenge
, { canComplete
: GetComputableTypeWithDefault
<T
["canComplete"
], Ref
<boolean
>> ; canStart
: GetComputableTypeWithDefault
<T
["canStart"
], Ref
<boolean
>> ; classes
: GetComputableType
<T
["classes"
]> ; completionLimit
: GetComputableTypeWithDefault
<T
["completionLimit"
], 1
> ; display
: GetComputableType
<T
["display"
]> ; goal
: GetComputableType
<T
["goal"
]> ; mark
: GetComputableTypeWithDefault
<T
["mark"
], Ref
<boolean
>> ; style
: GetComputableType
<T
["style"
]> ; visibility
: GetComputableTypeWithDefault
<T
["visibility"
], Visible
> }>
Type parameters
Name | Type |
---|---|
T | extends ChallengeOptions |
Defined in
profectus/src/features/challenges/challenge.tsx:70
GenericChallenge
Ƭ GenericChallenge: Replace
<Challenge
<ChallengeOptions
>, { canComplete
: ProcessedComputable
<boolean
> ; canStart
: ProcessedComputable
<boolean
> ; completionLimit
: ProcessedComputable
<DecimalSource
> ; mark
: ProcessedComputable
<boolean
> ; visibility
: ProcessedComputable
<Visibility
> }>
Defined in
profectus/src/features/challenges/challenge.tsx:85
Variables
ChallengeType
• Const
ChallengeType: typeof ChallengeType
Defined in
profectus/src/features/challenges/challenge.tsx:30
Functions
createActiveChallenge
▸ createActiveChallenge(challenges
): Ref
<GenericChallenge
| undefined
>
Parameters
Name | Type |
---|---|
challenges | GenericChallenge [] |
Returns
Ref
<GenericChallenge
| undefined
>
Defined in
profectus/src/features/challenges/challenge.tsx:96
createChallenge
▸ createChallenge<T
>(optionsFunc
): Challenge
<T
>
Type parameters
Name | Type |
---|---|
T | extends ChallengeOptions |
Parameters
Name | Type |
---|---|
optionsFunc | () => T & ThisType <Challenge <T >> |
Returns
Challenge
<T
>