@witchcraft/editor
Github
Issues
npm
Preparing search index...
pm/features/CommandsMenus/types
CommandGroup
Type Alias CommandGroup<T, TCommand, TNestable>
type
CommandGroup
<
T
extends
string
|
never
=
string
,
TCommand
extends
Command
<
any
>
=
Command
<
any
>
,
TNestable
extends
boolean
=
false
,
>
=
{
groupType
?:
T
extends
string
?
T
:
never
;
icon
?:
|
(
new
()
=>
any
)
|
{
component
:
new
()
=>
any
;
props
?:
Record
<
string
,
any
>
}
;
title
:
string
;
type
:
"group"
;
variations
:
TNestable
extends
false
?
TCommand
[]
:
(
TCommand
|
CommandGroup
<
T
,
TCommand
,
TNestable
>
)
[]
;
}
Type Parameters
T
extends
string
|
never
=
string
TCommand
extends
Command
<
any
>
=
Command
<
any
>
TNestable
extends
boolean
=
false
Index
Properties
group
Type?
icon?
title
type
variations
Properties
Optional
group
Type
groupType
?:
T
extends
string
?
T
:
never
Optional
icon
icon
?:
|
(
new
()
=>
any
)
|
{
component
:
new
()
=>
any
;
props
?:
Record
<
string
,
any
>
}
title
title
:
string
type
type
:
"group"
variations
variations
:
TNestable
extends
false
?
TCommand
[]
:
(
TCommand
|
CommandGroup
<
T
,
TCommand
,
TNestable
>
)
[]
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
group
Type
icon
title
type
variations
Github
Issues
npm
@witchcraft/editor
Loading...