import{_ as e,c as t,o as a,a as l}from"./app.ab34650d.js";const f=JSON.parse('{"title":"Module: features/challenges/challenge","description":"","frontmatter":{"editLink":false},"headers":[{"level":2,"title":"Components","slug":"components"},{"level":2,"title":"Interfaces","slug":"interfaces"},{"level":2,"title":"Type Aliases","slug":"type-aliases"},{"level":3,"title":"Challenge","slug":"challenge"},{"level":3,"title":"GenericChallenge","slug":"genericchallenge"},{"level":2,"title":"Variables","slug":"variables"},{"level":3,"title":"ChallengeType","slug":"challengetype"},{"level":2,"title":"Functions","slug":"functions"},{"level":3,"title":"createActiveChallenge","slug":"createactivechallenge"},{"level":3,"title":"createChallenge","slug":"createchallenge"},{"level":3,"title":"isAnyChallengeActive","slug":"isanychallengeactive"},{"level":3,"title":"setupAutoComplete","slug":"setupautocomplete"}],"relativePath":"api/modules/features/challenges/challenge.md","lastUpdated":null}'),c={name:"api/modules/features/challenges/challenge.md"},d=l('

Module: features/challenges/challenge

Components

Interfaces

Type Aliases

Challenge

\u01AC Challenge<T>: Replace<T & BaseChallenge, { canComplete: GetComputableTypeWithDefault<T["canComplete"], Ref<boolean>> ; canStart: GetComputableTypeWithDefault<T["canStart"], true> ; 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

NameType
Textends ChallengeOptions

Defined in

profectus/src/features/challenges/challenge.tsx:66


GenericChallenge

\u01AC GenericChallenge: Replace<Challenge<ChallengeOptions>, { canComplete: ProcessedComputable<boolean | DecimalSource> ; canStart: ProcessedComputable<boolean> ; completionLimit: ProcessedComputable<DecimalSource> ; mark: ProcessedComputable<boolean> ; visibility: ProcessedComputable<Visibility> }>

Defined in

profectus/src/features/challenges/challenge.tsx:81

Variables

ChallengeType

\u2022 Const ChallengeType: typeof ChallengeType

Defined in

profectus/src/features/challenges/challenge.tsx:25

Functions

createActiveChallenge

\u25B8 createActiveChallenge(challenges): Ref<GenericChallenge | undefined>

Parameters

NameType
challengesGenericChallenge[]

Returns

Ref<GenericChallenge | undefined>


createChallenge

\u25B8 createChallenge<T>(optionsFunc): Challenge<T>

Type parameters

NameType
Textends ChallengeOptions

Parameters

NameType
optionsFuncOptionsFunc<T, BaseChallenge, GenericChallenge>

Returns

Challenge<T>


isAnyChallengeActive

\u25B8 isAnyChallengeActive(challenges): Ref<boolean>

Parameters

NameType
challengesGenericChallenge[] | Ref<undefined | GenericChallenge>

Returns

Ref<boolean>


setupAutoComplete

\u25B8 setupAutoComplete(challenge, autoActive?, exitOnComplete?): WatchStopHandle

Parameters

NameTypeDefault value
challengeGenericChallengeundefined
autoActiveComputable<boolean>true
exitOnCompletebooleantrue

Returns

WatchStopHandle

',52),o=[d];function n(r,h,i,s,g,u){return a(),t("div",null,o)}var m=e(c,[["render",n]]);export{f as __pageData,m as default};