Precise DOM morphing
morphing typescript dom
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update morphlex.ts

-7
-3
dist/morphlex.js
··· 333 333 } 334 334 } 335 335 } 336 - // We cannot use `instanceof` when nodes might be from different documents, 337 - // so we use type guards instead. This keeps TypeScript happy, while doing 338 - // the necessary checks at runtime. 339 336 function writableNode(node) { 340 337 return node; 341 338 }
-4
src/morphlex.ts
··· 462 462 } 463 463 } 464 464 465 - // We cannot use `instanceof` when nodes might be from different documents, 466 - // so we use type guards instead. This keeps TypeScript happy, while doing 467 - // the necessary checks at runtime. 468 - 469 465 function writableNode<N extends Node>(node: ReadonlyNode<N>): N { 470 466 return node as N; 471 467 }