Volt.JS.Patch (Volt v0.13.1)

Copy Markdown View Source

Small struct wrapper for source patches applied through OXC.

Summary

Types

t()

@type t() :: %Volt.JS.Patch{
  change: iodata(),
  end: non_neg_integer(),
  start: non_neg_integer()
}

Functions

apply(source, patches)

new(start_pos, end_pos, change)