chore(types): add return type to advancePosition (#3961)

This commit is contained in:
Thomas Chaplin 2020-09-24 19:30:18 +01:00 committed by GitHub
parent a42cd4b9aa
commit 76d08cefc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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),