Skip to content

Commit

Permalink
Add missing types
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Jun 15, 2023
1 parent 792052b commit fcad408
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,8 @@ function shiftRange({ index, length }: Range, amount: number) {
return new Range(index + amount, length);
}

function splitOpLines(ops) {
const split = [];
function splitOpLines(ops: Op[]) {
const split: Op[] = [];
ops.forEach(op => {
if (typeof op.insert === 'string') {
const lines = op.insert.split('\n');
Expand Down

0 comments on commit fcad408

Please sign in to comment.