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('
Ƭ 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.
Name | Type |
---|---|
T | extends ActionOptions |
profectus/src/features/action.tsx:75
Ƭ GenericAction: Replace
<Action
<ActionOptions
>, { autoStart
: ProcessedComputable
<boolean
> ; canClick
: ProcessedComputable
<boolean
> ; visibility
: ProcessedComputable
<Visibility
| boolean
> }>
A type that matches any valid Action object.
profectus/src/features/action.tsx:91
• Const
ActionType: typeof ActionType
A symbol used to identify Action features.
profectus/src/features/action.tsx:36
▸ createAction<T
>(optionsFunc?
): Action
<T
>
Lazily creates an action with the given options.
Name | Type |
---|---|
T | extends ActionOptions <T > |
Name | Type | Description |
---|---|---|
optionsFunc? | OptionsFunc <T , BaseAction , GenericAction > | Action options. |
Action
<T
>