import{_ as e,c as t,o as a,N as o}from"./chunks/framework.0799945b.js";const b=JSON.parse('{"title":"Module: features/action","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/modules/features/action.md","lastUpdated":null}'),c={name:"api/modules/features/action.md"},i=o('

Module: features/action

Interfaces

Type Aliases

Action

Ƭ Action<T>: Replace<T & BaseAction, { autoStart: GetComputableTypeWithDefault<T["autoStart"], false> ; canClick: GetComputableTypeWithDefault<T["canClick"], true> ; classes: GetComputableType<T["classes"]> ; display: JSXFunction ; duration: GetComputableType<T["duration"]> ; mark: GetComputableType<T["mark"]> ; onClick: VoidFunction ; style: GetComputableType<T["style"]> ; visibility: GetComputableTypeWithDefault<T["visibility"], Visible> }>

An object that represens a feature that can be clicked upon, and then have a cooldown before they can be clicked again.

Type parameters

NameType
Textends ActionOptions

Defined in

profectus/src/features/action.tsx:75


GenericAction

Ƭ GenericAction: Replace<Action<ActionOptions>, { autoStart: ProcessedComputable<boolean> ; canClick: ProcessedComputable<boolean> ; visibility: ProcessedComputable<Visibility | boolean> }>

A type that matches any valid Action object.

Defined in

profectus/src/features/action.tsx:91

Variables

ActionType

Const ActionType: typeof ActionType

A symbol used to identify Action features.

Defined in

profectus/src/features/action.tsx:36

Functions

createAction

createAction<T>(optionsFunc?): Action<T>

Lazily creates an action with the given options.

Type parameters

NameType
Textends ActionOptions<T>

Parameters

NameTypeDescription
optionsFunc?OptionsFunc<T, BaseAction, GenericAction>Action options.

Returns

Action<T>

Defined in

profectus/src/features/action.tsx:104

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