Interface: BaseChallenge

features/challenges/challenge.BaseChallenge

Properties

[Component]

[Component]: DefineComponent<{ active: { required: true = true; type: PropType<ProcessedComputable<boolean>> } ; canComplete: { required: true = true; type: PropType<ProcessedComputable<boolean>> } ; canStart: { required: true = true; type: PropType<ProcessedComputable<boolean>> } ; classes: PropType<ProcessedComputable<Record<string, boolean>>> ; completed: { required: true = true; type: PropType<ProcessedComputable<boolean>> } ; display: PropType<ProcessedComputable<undefined | CoercableComponent | { description: CoercableComponent ; effectDisplay?: CoercableComponent ; goal?: CoercableComponent ; reward?: CoercableComponent ; title?: CoercableComponent } | { description: CoercableComponent ; effectDisplay?: CoercableComponent ; goal?: CoercableComponent ; reward?: CoercableComponent ; title?: CoercableComponent }>> ; id: { required: true = true; type: StringConstructor = String } ; mark: PropType<ProcessedComputable<string | boolean>> ; maxed: { required: true = true; type: PropType<ProcessedComputable<boolean>> } ; style: PropType<ProcessedComputable<StyleValue>> ; toggle: { required: true = true; type: PropType<VoidFunction> } ; visibility: { required: true = true; type: PropType<ProcessedComputable<Visibility>> } }, { Visibility: typeof Visibility ; buttonText: ComputedRef<"Finish" | "Exit Early" | "Completed" | "Start"> ; comp: ShallowRef<string | Component<any, any, any, ComputedOptions, MethodOptions>> ; notifyStyle: ComputedRef<{}> ; unref: <T>(ref: T | Ref<T>) => T }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, PublicProps, Readonly<ExtractPropTypes<{ active: { required: true = true; type: PropType<ProcessedComputable<boolean>> } ; canComplete: { required: true = true; type: PropType<ProcessedComputable<boolean>> } ; canStart: { required: true = true; type: PropType<ProcessedComputable<boolean>> } ; classes: PropType<ProcessedComputable<Record<string, boolean>>> ; completed: { required: true = true; type: PropType<ProcessedComputable<boolean>> } ; display: PropType<ProcessedComputable<undefined | CoercableComponent | { description: CoercableComponent ; effectDisplay?: CoercableComponent ; goal?: CoercableComponent ; reward?: CoercableComponent ; title?: CoercableComponent } | { description: CoercableComponent ; effectDisplay?: CoercableComponent ; goal?: CoercableComponent ; reward?: CoercableComponent ; title?: CoercableComponent }>> ; id: { required: true = true; type: StringConstructor = String } ; mark: PropType<ProcessedComputable<string | boolean>> ; maxed: { required: true = true; type: PropType<ProcessedComputable<boolean>> } ; style: PropType<ProcessedComputable<StyleValue>> ; toggle: { required: true = true; type: PropType<VoidFunction> } ; visibility: { required: true = true; type: PropType<ProcessedComputable<Visibility>> } }>>, {}>

Defined in

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


active

active: PersistentRef<boolean>

Defined in

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


completed

completed: Ref<boolean>

Defined in

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


completions

completions: PersistentRef<DecimalSource>

Defined in

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


id

id: string

Defined in

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


maxed

maxed: Ref<boolean>

Defined in

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


toggle

toggle: VoidFunction

Defined in

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


type

type: typeof ChallengeType

Defined in

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

Methods

[GatherProps]

[GatherProps](): Record<string, unknown>

Returns

Record<string, unknown>

Defined in

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


complete

complete(remainInChallenge?): void

Parameters

NameType
remainInChallenge?boolean

Returns

void

Defined in

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