mithril-materialized
Preparing search index...
WithId
Type Alias WithId<T, Required>
WithId
:
Required
extends
true
?
T
&
{
id
:
ComponentId
}
:
T
&
{
id
?:
ComponentId
}
Conditional type to make ID required or optional
Type Parameters
T
The base type
Required
extends
boolean
=
false
Whether ID should be required
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
mithril-materialized
Loading...
Conditional type to make ID required or optional