Skip to content

Commit

Permalink
chore(types): add return type to advancePosition (#3961)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaschaplin committed Sep 24, 2020
1 parent a42cd4b commit 76d08ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/sourceMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function findPosition(source: string, offset: number): Position {
return result;
}

function advancePosition(position: Position, delta: Position) {
function advancePosition(position: Position, delta: Position): Position {
return {
line: position.line + delta.line,
column: delta.column + (delta.line ? 0 : position.column),
Expand Down

0 comments on commit 76d08ce

Please sign in to comment.