Type aliases
AddElements
Add
Elements<E>: <A>(parentNode: Node, vNodes: A, referenceNode: Node | null) => Effects<E & CombinedEnvsOf<A>, void>
Type parameters
Type declaration
-
- <A>(parentNode: Node, vNodes: A, referenceNode: Node | null): Effects<E & CombinedEnvsOf<A>, void>
-
Type parameters
Parameters
-
parentNode: Node
-
vNodes: A
-
referenceNode: Node | null
Returns Effects<E & CombinedEnvsOf<A>, void>
BubblingEventHandler
Bubbling
EventHandler<E, A, Map, K>: (event: { currentTarget: NodeFrom<A>; type: K } & Map[K]) => Effects<E, any>
Type parameters
-
E: {}
-
-
Map: {}
-
K: keyof Map
Type declaration
-
- (event: { currentTarget: NodeFrom<A>; type: K } & Map[K]): Effects<E, any>
-
Parameters
-
event: { currentTarget: NodeFrom<A>; type: K } & Map[K]
Returns Effects<E, any>
ChildrenOf
ChildrenOf<A>:
Type parameters
CombinedEnvsOf
Type parameters
CreateElement
Create
Element<E>: <A>(vNode: A) => Effects<E & EnvOf<A>, void>
Type parameters
Type declaration
-
- <A>(vNode: A): Effects<E & EnvOf<A>, void>
-
Type parameters
Parameters
Returns Effects<E & EnvOf<A>, void>
ElementToVNode
Element
ToVNode<E>: (node: Text | Comment | HTMLElement | SVGElement) => Effects<E, VNode<{}>>
Type parameters
Type declaration
-
- (node: Text | Comment | HTMLElement | SVGElement): Effects<E, VNode<{}>>
-
Parameters
-
node: Text | Comment | HTMLElement | SVGElement
Returns Effects<E, VNode<{}>>
EventHandler
Type parameters
-
E: {}
-
-
Map: {}
-
K: keyof Map
EventHandlerWithOptions
Event
HandlerWithOptions<E, A, Map, K>: keyof [AddEventListenerOptions, (event: { currentTarget: NodeFrom<A>; type: K } & Map[K]) => Effects<E, any>]
Type parameters
-
E: {}
-
-
Map: {}
-
K: keyof Map
EventMapFrom
EventMapFrom<A>: A extends HtmlTagName ? A extends "body" ? HTMLBodyElementEventMap : A extends "frameset" ? HTMLFrameSetElementEventMap : A extends "marquee" ? HTMLMarqueeElementEventMap : A extends "media" ? HTMLMediaElementEventMap : HTMLElementEventMap : A extends SvgTagName ? SVGElementEventMap : never
Type parameters
EventsFrom
Type parameters
EventsFromMap
EventsFromMap<E, A, Map>: {}
Type parameters
HtmlTagName
HtmlTagName: keyof HTMLElementTagNameMap
KeyOf
KeyOf<A, Key>: {}
Type parameters
NodeFrom
NodeFrom<A>: A extends HtmlTagName ? HTMLElementTagNameMap[A] : A extends SvgTagName ? SVGElementTagNameMap[A] : never
Type parameters
NodeOf
NodeOf<A>: A extends TextVNode ? Text : A extends CommentVNode ? Comment : NodeFrom<TagNameOf<A>>
Type parameters
PatchElement
Patch
Element<E>: <A, B>(previous: A, updated: B) => Effects<E & EnvOf<A> & EnvOf<B>, void>
Type parameters
Type declaration
-
- <A, B>(previous: A, updated: B): Effects<E & EnvOf<A> & EnvOf<B>, void>
-
Type parameters
Parameters
Returns Effects<E & EnvOf<A> & EnvOf<B>, void>
PropertiesOf
PropertiesOf<A>: {}
Type parameters
PropsFrom
Type parameters
RecordDiff
RecordDiff<K, A>: { removed: ReadonlyArray<keyof [K, A]>; updated: ReadonlyArray<keyof [K, A]> }
Type parameters
Type declaration
-
Readonly removed: ReadonlyArray<keyof [K, A]>
-
Readonly updated: ReadonlyArray<keyof [K, A]>
RemoveElements
Remove
Elements<E>: <A>(parentNode: Node, vNodes: A) => Effects<E & CombinedEnvsOf<A>, void>
Type parameters
Type declaration
-
- <A>(parentNode: Node, vNodes: A): Effects<E & CombinedEnvsOf<A>, void>
-
Type parameters
Parameters
-
parentNode: Node
-
vNodes: A
Returns Effects<E & CombinedEnvsOf<A>, void>
StrMapDiff
Type parameters
SvgTagName
SvgTagName: keyof SVGElementTagNameMap
TagNameOf
TagNameOf<A>: A extends HtmlVNode<any, infer R, any> ? R : A extends SvgVNode<any, infer R, any> ? R : never
Type parameters
UpdateAriaAttributes
Update
AriaAttributes<E>: <A>(vNode: A, diff: StrMapDiff<string>) => Effects<E & EnvOf<A>, A>
Type parameters
Type declaration
-
-
Type parameters
Parameters
Returns Effects<E & EnvOf<A>, A>
UpdateAttributes
Update
Attributes<E>: <A>(vNode: A, diff: StrMapDiff<string | undefined>) => Effects<E & EnvOf<A>, A>
Type parameters
Type declaration
-
- <A>(vNode: A, diff: StrMapDiff<string | undefined>): Effects<E & EnvOf<A>, A>
-
Type parameters
Parameters
Returns Effects<E & EnvOf<A>, A>
UpdateChildren
Update
Children<E>: <A, B>(parentElement: Element, children: A, updatedChildren: B) => Effects<E & CombinedEnvsOf<A> & CombinedEnvsOf<B>, void>
Type parameters
Type declaration
-
-
Type parameters
Parameters
-
parentElement: Element
-
children: A
-
updatedChildren: B
UpdateDataList
Update
DataList<E>: <A>(vNode: A, diff: StrMapDiff<string>) => Effects<E & EnvOf<A>, A>
Type parameters
Type declaration
-
-
Type parameters
Parameters
Returns Effects<E & EnvOf<A>, A>
UpdateEventHandlers
Type parameters
Type declaration
-
-
Type parameters
Parameters
Returns Effects<E, A>
UpdateProperties
Type parameters
Type declaration
-
-
Type parameters
Parameters
Returns Effects<E, A>
VNodeEnv
VNodeEnv<A>: A extends HtmlVNode<infer E, any, any> ? E : A extends SvgVNode<infer E, any, any> ? E : unknown
Type parameters
@typed/html
A configurable virtual-dom library with first-class effects.