Skip to content

Commit

Permalink
Update morphlex.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Apr 4, 2024
1 parent bf208fb commit 41d4952
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions dist/morphlex.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions src/morphlex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,6 @@ class Morph {
}
}

// We cannot use `instanceof` when nodes might be from different documents,
// so we use type guards instead. This keeps TypeScript happy, while doing
// the necessary checks at runtime.

function writableNode<N extends Node>(node: ReadonlyNode<N>): N {
return node as N;
}
Expand Down

0 comments on commit 41d4952

Please sign in to comment.