mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
chore(types): add return type to advancePosition (#3961)
This commit is contained in:
parent
a42cd4b9aa
commit
76d08cefc2
@ -133,7 +133,7 @@ function findPosition(source: string, offset: number): Position {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
function advancePosition(position: Position, delta: Position) {
|
function advancePosition(position: Position, delta: Position): Position {
|
||||||
return {
|
return {
|
||||||
line: position.line + delta.line,
|
line: position.line + delta.line,
|
||||||
column: delta.column + (delta.line ? 0 : position.column),
|
column: delta.column + (delta.line ? 0 : position.column),
|
||||||
|
Loading…
Reference in New Issue
Block a user