Field Notes
Field Notes home
Docs
Playground
Preparing search index...
@fieldnotes/core
ElementTypeKey
Interface ElementTypeKey<T>
interface
ElementTypeKey
<
T
extends
BaseElement
>
{
matches
:
(
envelope
:
ExtensionElementEnvelope
)
=>
boolean
;
type
:
string
;
unwrap
:
(
envelope
:
ExtensionElementEnvelope
)
=>
T
;
validateData
:
(
data
:
Record
<
string
,
unknown
>
)
=>
boolean
;
wrap
:
(
el
:
T
)
=>
ExtensionElementEnvelope
;
}
Type Parameters
T
extends
BaseElement
Index
Properties
matches
type
unwrap
validate
Data
wrap
Properties
Readonly
matches
matches
:
(
envelope
:
ExtensionElementEnvelope
)
=>
boolean
Readonly
type
type
:
string
Readonly
unwrap
unwrap
:
(
envelope
:
ExtensionElementEnvelope
)
=>
T
Readonly
validate
Data
validateData
:
(
data
:
Record
<
string
,
unknown
>
)
=>
boolean
Readonly
wrap
wrap
:
(
el
:
T
)
=>
ExtensionElementEnvelope
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
matches
type
unwrap
validate
Data
wrap
Field Notes home
Docs
Playground
Field Notes
Loading...