| 31 | * to cases where original content is in a string format. |
| 32 | */ |
| 33 | export interface IStringDiffModel extends IDiffModel { |
| 34 | /** |
| 35 | * Base value |
| 36 | */ |
| 37 | base: string | null; |
| 38 | |
| 39 | /** |
| 40 | * Remote value |
| 41 | */ |
| 42 | remote: string | null; |
| 43 | |
| 44 | /** |
| 45 | * Mimetype of the data the string represents. |
| 46 | * |
| 47 | * Can be used for things such as syntax highlighting. |
| 48 | */ |
| 49 | mimetype: string; |
| 50 | |
| 51 | /** |
| 52 | * Location of additions, as positions in the remote value. |
| 53 | * |
| 54 | * Locations should be sorted on the ranges' `from` position |
| 55 | */ |
| 56 | additions: DiffRangePos[]; |
| 57 | |
| 58 | /** |
| 59 | * Location of deletions, as positions in the base value. |
| 60 | * |
| 61 | * Locations should be sorted on the ranges' `from` position |
| 62 | */ |
| 63 | deletions: DiffRangePos[]; |
| 64 | |
| 65 | /** |
| 66 | * A function that will separate the diff into chunks. |
| 67 | */ |
| 68 | getLineChunks(): Chunk[]; |
| 69 | |
| 70 | /** |
| 71 | * Create an iterator for iterating over the diffs in order |
| 72 | */ |
| 73 | iterateDiffs(): StringDiffModel.DiffIter; |
| 74 | } |
| 75 | |
| 76 | /** |
| 77 | * Standard implementation of the IStringDiffModel interface. |
no outgoing calls
no test coverage detected