Open Symbols API
Docs
Library
Preparing search index...
core/src
createIconRegistry
Function createIconRegistry
createIconRegistry
(
initial
?:
readonly
IconDefinition
[]
,
)
:
{
getIcon
:
(
name
:
string
)
=>
IconDefinition
|
undefined
;
listIcons
:
()
=>
IconDefinition
[]
;
registerIcons
:
(
definitions
:
readonly
IconDefinition
[]
)
=>
void
;
subscribe
(
listener
:
(
definitions
:
readonly
IconDefinition
[]
)
=>
void
,
)
:
()
=>
void
;
}
An explicit, isolated registry for per-icon consumers.
Parameters
initial
:
readonly
IconDefinition
[]
= []
Returns
{
getIcon
:
(
name
:
string
)
=>
IconDefinition
|
undefined
;
listIcons
:
()
=>
IconDefinition
[]
;
registerIcons
:
(
definitions
:
readonly
IconDefinition
[]
)
=>
void
;
subscribe
(
listener
:
(
definitions
:
readonly
IconDefinition
[]
)
=>
void
,
)
:
()
=>
void
;
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Docs
Library
Open Symbols API
Loading...
An explicit, isolated registry for per-icon consumers.