UNPKG

diff-dom-streaming

Version:

Diff DOM algorithm with streaming. Gets all modifications, insertions and removals between a DOM fragment and a stream HTML reader.

14 lines (11 loc) 290 B
export default function diff( oldNode: Node, stream: ReadableStream, options?: Options, ): Promise<void>; type NextNodeCallback = (node: Node) => void; type Options = { onNextNode?: NextNodeCallback; transition?: boolean; shouldIgnoreNode?: (node: Node | null) => boolean; };